File:Petrol-ets-2010-2015.svg
Original file (SVG file, nominally 720 × 540 pixels, file size: 211 KB)
Captions
Summary
[edit]DescriptionPetrol-ets-2010-2015.svg |
English: Analysis of the New Zealand retail petrol prices from July 2010 to the present |
Date | |
Source |
Own work Data obtained from Ministry of Business Innovation & Employment https://www.mbie.govt.nz/building-and-energy/energy-and-natural-resources/energy-statistics-and-modelling/energy-statistics/weekly-fuel-price-monitoring/ and https://www.mbie.govt.nz/assets/Data-Files/Energy/Weekly-fuel-price-monitoring/weekly-table.csv |
Author | Mrfebruary |
SVG development InfoField | This coat of arms was created with R. |
Source code InfoField | R codelibrary(RColorBrewer)
# read in data
data <- read.csv("https://www.mbie.govt.nz/assets/Data-Files/Energy/Weekly-fuel-price-monitoring/weekly-table.csv")
# Add a date column in date format
data[["Week_ending_Friday"]] <- as.Date(data[["Week_ending_Friday"]])
# create data frame of regular petrol price components , all rows of columns 1 and 16 to 23
petrol <- data[,c(1,16:23)]
# set some colours
display.brewer.pal("Dark2",n=5)
brewer.pal("Dark2",n=5)
[1] "#1B9E77" "#D95F02" "#7570B3" "#E7298A" "#66A61E"
tint <-c("#1B9E77", "#D95F02", "#7570B3", "#E7298A", "#66A61E")
# create chart
svg(filename ="Petrol-prices-ETS-2010-2023.svg", width = 8, height = 6, pointsize = 10, onefile = FALSE, family = "sans", bg = "white", antialias = c("default", "none", "gray", "subpixel"))
par(mar=c(4,2.9,1,1)+0.1)
plot(petrol[["Date"]],petrol[["Regular_Petrol_main_port_price_NZc.p.l"]],axes=T,ann=T, ylim=c(0,330),tck=0.01, type="l", col=tint[1],lwd=1, las=1 , ylab="",xlab="")
lines(petrol[["Date"]],petrol[["Regular_Petrol_importer_cost_NZc.p.l"]],type="l", col=tint[2],lwd=1)
lines(petrol[["Date"]],petrol[["Regular_Petrol_taxes_NZc.p.l"]],type="l", col=tint[3],lwd=1)
lines(petrol[["Date"]],petrol[["Regular_Petrol_GST_NZc.p.l"]],type="l", col=tint[4],lwd=1)
lines(petrol[["Date"]],petrol[["Regular_Petrol_ETS_NZc.p.l"]],type="l", col=tint[5],lwd=1)
legend("topleft", inset=c(0.0,0.0), cex=1.1,bty="n",c("Retail price","Import cost","Fuel excise tax","GST","Emissions trading scheme cost"), col=tint,lty=1,lwd=1)
mtext(side=4,cex=0.75, line=0.05,R.version.string)
mtext(side=1,line=2.75,cex=0.85,"Data: Ministry of Business Innovation & Employment\nhttps://www.mbie.govt.nz/assets/Data-Files/Energy/Weekly-fuel-price-monitoring/weekly-table.csv")
mtext(side=3,cex=1.6, line=-4,expression(paste("New Zealand petrol price \ncomponents 2010 to 2023")))
mtext(side=2,cex=1, line=-1.3,"cents per litre")
axis(side=4, tck=0.01, at = NULL, labels = FALSE, tick = TRUE)
dev.off()
|
Licensing
[edit]- 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.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 05:46, 20 September 2023 | 720 × 540 (211 KB) | Mrfebruary (talk | contribs) | update | |
04:28, 4 July 2023 | 720 × 540 (209 KB) | Mrfebruary (talk | contribs) | update | ||
01:58, 30 October 2022 | 720 × 540 (199 KB) | Mrfebruary (talk | contribs) | update | ||
04:02, 19 January 2020 | 720 × 540 (174 KB) | Mrfebruary (talk | contribs) | data update to December 2019 | ||
02:57, 15 March 2015 | 684 × 558 (94 KB) | Mrfebruary (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 576pt |
---|---|
Height | 432pt |