File:NZ Electricity Generation.png

NZ_Electricity_Generation.png(650 × 550 pixels, file size: 8 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

edit
Description
English: NZ Electricity Generation by Fuel Type 1974 to 2008
Date
Source Own work Source: New Zealand Government Ministry of Economic Development Energy Data File 2010. http://www.med.govt.nz/upload/73585/EDF-2010-Data-Tables.zip Data subset https://spreadsheets.google.com/ccc?key=0AsLhMBA3NXL4dFRvbnpvZGprQ1l5eW1IMGtBbDhJMGc&hl=en_GB
Author Mrfebruary
Other versions

R code

edit

Download file "edfg2a.csv" from https://spreadsheets.google.com/ccc?key=0AsLhMBA3NXL4dFRvbnpvZGprQ1l5eW1IMGtBbDhJMGc&hl=en_GB to your working directory

e <- read.csv("edfg2a.csv", skip = 2,header=TRUE, sep=",", na.strings="-", dec=".", strip.white=TRUE)

em<-max(e$Hydro)

png(file="nzegv2.png",pointsize = 16,width=800,height=600)

plot(e$Year,e$Hydro,axes="FALSE",type="l",col=2,lwd=2,ylim=c(0,em),ylab="Gigawatt hours",xlim=c(1974,2014),xlab="Year",main="NZ Electricity Generation by Fuel Type")

axis(1,line=0,at=c(1975,1980,1985,1990,1995,2000,2005),labels=c(1975,1980,1985,1990,1995,2000,2005),lwd=1)

axis(2,lwd=1)

text(2009,e$Hydro[35],"Hydro",adj=0,col=1)

lines(e$Year,e$Gas,col=3,lwd=2)

text(2009,e$Gas[35],"Gas",adj=0,col=1)

lines(e$Year,e$Coal,col=6,lwd=2)

text(2009,e$Coal[35]+500,"Coal",adj=0,col=1)

lines(e$Year,e$Geothermal,col=4,lwd=2)

text(2009,e$Geothermal[35]-500,"Geothermal",adj=0,col=1)

lines(e$Year,e$Wind,col="darkgoldenrod1",lwd=2)

text(2009,e$Wind[35]+1000,"Wind",adj=0,col=1)

lines(e$Year,e$Wood,col=7,lwd=2)

text(2009,e$Wood[35]+500,"Wood",adj=0,col=1)

lines(e$Year,e$Oil,col=5,lwd=2)

text(2009,e$Oil[35]-500,"Oil",adj=0,col=1)

mtext(side=3,line=0.3,cex=0.9,"Source: Ministry of Economic Development Energy Data File 2009")

box(lwd=3)

dev.off()

Licensing

edit
I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported 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.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
You may select the license of your choice.
 
This chart was created with R.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current06:35, 6 April 2011Thumbnail for version as of 06:35, 6 April 2011650 × 550 (8 KB)Mrfebruary (talk | contribs){{Information |Description ={{en|1=NZ Electricity Generation by Fuel Type 1974 to 2008 }} |Source ={{own}} |Author =Mrfebruary |Date =2011-04-06 |Permission = |other_versions = }} ==R code== e <- read.c

The following page uses this file: