File:New Zealand atmospheric methane concentrations.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file(SVG file, nominally 720 × 540 pixels, file size: 106 KB)

Summary

Description
English: New Zealand atmospheric methane concentrations recorded at Baring Head Wellington, New Zealand. For data and code see https://github.com/theecanmole/Methane-nitrous-oxide-Baring-Head
Date
Source Own work
Author Mrfebruary

SVG development

InfoField
 
The SVG code is valid.
 
This chart was created with R.

Source code

InfoField

R code

# Statistics NZ Tatauranga Aotearoa https://www.stats.govt.nz/indicators/greenhouse-gas-concentrations
# go to 'Download' click through and 'Download all data' and right click copy link
download.file("https://statisticsnz.shinyapps.io/ghg_concentrations_oct20/_w_d5223dbc/session/b3dde967ab0df32633f7977e7728c693/download/download?w=d5223dbc","download?w=d5223dbc")
# unzip downloaded zip file
unzip("download?w=d5223dbc")
# read in the data file
state_data <- read.csv("state_data.csv")
# select only methane records
methane <- state_data[state_data[["gas"]]=="Methane",]
svg(filename="NZmethane-2019-720by540.svg", width = 8, height = 6, pointsize = 14, onefile = FALSE, family = "sans", bg = "white", antialias = c("default", "none", "gray", "subpixel"))
par(mar=c(2.7,3.3,1,1)+0.1)
plot(methane[["period_end"]],methane[["concentration"]],tck=0.01,ylab=NA,axes=T,ann=T, type="l",lwd=2,las=1,col="#7570B3")
box(lwd=1)
mtext(side=1,line=-1.4,cex=1,"Data: Stats NZ Tatauranga Aotearoa \nhttps://www.stats.govt.nz/indicators/greenhouse-gas-concentrations")
mtext(side=3,cex=1.3, line=-1.8,expression(paste("Baring Head Methane concentrations 1989 to 2019")) )
mtext(side=2,cex=1.1, line=-1.5,expression(paste("Parts per billion")))
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:
w:en:Creative Commons
attribution share alike
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.

Captions

New Zealand atmospheric methane concentrations at Baring Head

Items portrayed in this file

depicts

15 June 2023

image/svg+xml

File history

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

Date/TimeThumbnailDimensionsUserComment
current01:07, 15 June 2023Thumbnail for version as of 01:07, 15 June 2023720 × 540 (106 KB)MrfebruaryUploaded own work with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Metadata