File:NZU-NZ-emission-unit-720by540.svg
Summary
Description |
English: New Zealand emission unit prices in the NZ emissions trading scheme 2010 to present. The processed monthly data comes from a Github repository https://github.com/theecanmole/nzu |
Date | |
Source | Data; Theecanmole. (2016). New Zealand emission unit (NZU) monthly prices 2010 to 2016: V1.0.01 [Data set]. Zenodo. http://doi.org/10.5281/zenodo.221328 |
Author | Mrfebruary |
SVG development | |
Source code | R code# Create charts of processed monthly mean NZU prices
# download monthly price data from Github
# make a short 'list' for the url of the data at Github
urldata <- c("https://raw.githubusercontent.com/theecanmole/nzu/master/nzu-month-price.csv")
# define the destination file name and location
monthprice <-c("nzu-month-price.csv")
download.file(urldata, monthprice)
# or read in the price data from the .csv file in the destination folder
monthprice <- read.csv("nzu-month-price.csv", skip=0, header=TRUE, sep=",", colClasses = c("Date","numeric"),na.strings="NA", dec=".", strip.white=TRUE)
# create time series of price data
mpts <- ts(data = monthprice[["price"]], start =c(2010, 5), deltat = 1/12)
# Create svg format graph
svg(filename="NZUprice-720by540.svg", width = 8, height = 6, pointsize = 16, onefile = FALSE, family = "sans", bg = "white", antialias = c("default", "none", "gray", "subpixel"))
par(mar=c(2.7,2.7,1,1)+0.1)
plot(mpts,tck=0.01,axes=TRUE,ann=TRUE,las=1,col="red",lwd=2,type='l',lty=1)
grid(col="darkgray",lwd=1)
axis(side=4, tck=0.01, las=0,tick=TRUE,labels = FALSE)
mtext(side=1,cex=0.75,line=-1.1,"Data: 'NZU monthly prices' https://github.com/theecanmole/nzu")
mtext(side=3,cex=1.5, line=-2.2,expression(paste("New Zealand Unit Prices 2010 - 2025")) )
mtext(side=2,cex=1, line=-1.3,"$NZ Dollars/tonne")
mtext(side=4,cex=0.75, line=0.05,R.version.string)
dev.off()
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.