File:New Zealand atmospheric methane concentrations.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 768 × 576 pixels, file size: 113 KB)

Captions

Captions

New Zealand atmospheric methane concentrations at Baring Head

Summary

[edit]
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
# link to zip file 17/08/2024
download.file("https://www.stats.govt.nz/assets/Uploads/Environment-indicators-2023/Greenhouse-gas-concentrations/Download-data/greenhouse-gas-concentrations-data-to-2022.zip","greenhouse-gas-concentrations-data-to-2022.zip")
# unzip downloaded zip file
unzip("greenhouse-gas-concentrations-data-to-2022.zip")
# read in the data file
ghgs <- read.csv("greenhouse-gas-concentrations-monthly-2022.csv")
# select only methane records
methane <- ghgs[ghgs[["variable"]]=="methane",]
# select only mean fitted data
meanfitmethane <- methane[methane[["parameter"]]=="mean_fitted",]  
# add date column 
meanfitmethane[["date"]] = seq(as.Date('1989-08-31'), by = 'months', length = nrow(meanfitmethane)) 
# plot
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(meanfitmethane[["date"]],meanfitmethane[["greenhouse_gas_concentration"]],tck=0.01,ylab=NA,axes=T,ann=T, type="l",lwd=2,las=1,col="#7570B3")
grid(col="darkgray",lwd=1)
axis(side=4, tck=0.01, las=0,tick=TRUE,labels = FALSE)
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 2022")) )
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

[edit]
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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current03:45, 18 August 2024Thumbnail for version as of 03:45, 18 August 2024768 × 576 (113 KB)Mrfebruary (talk | contribs)mean fitted data
07:06, 17 August 2024Thumbnail for version as of 07:06, 17 August 2024768 × 576 (107 KB)Mrfebruary (talk | contribs)update
01:07, 15 June 2023Thumbnail for version as of 01:07, 15 June 2023720 × 540 (106 KB)Mrfebruary (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata