File:US-gas-production-1900-2011.svg

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

Original file(SVG file, nominally 650 × 506 pixels, file size: 7 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: U.S. Natural Gas Marketed Production (cf) 1900 to 2011, data from US EIA
Date
Source Own work
Author Mrfebruary
SVG development
InfoField
 
The SVG code is valid.
 
This chart was created with R.
 
This file uses translateable embedded text.
Source code
InfoField

R code

gas <- read.csv("N9050US2a.csv",skip=3, header=TRUE, sep=",", na.strings="NA", dec=".", strip.white=TRUE)
str(gas)
'data.frame':	112 obs. of  2 variables:
 $ Year: Factor w/ 112 levels "1900/06/30","1901/06/30",..: 1 2 3 4 5 6 7 8 9 10 ...
 $ gas : int  128000 180000 206000 239000 257000 320000 389000 407000 402000 481000 ...
tgas<-ts(gas$gas, frequency = 1, start = c(1900, 1))
str(tgas)
Time-Series [1:112] from 1900 to 2011: 128000 180000 206000 239000 257000 320000 389000 407000 402000 481000 ...
library("RSVGTipsDevice")
devSVGTips(file="US-gas-production-1900-2011.svg",toolTipMode=0,width=9,height=7)
plot(tgas/10^6,ylim=c(0,25),lwd=2,type="l",col="4", main="",xlab="Year", ylab="(cubic feet x 10^12)")
mtext(side=3,line=-2.3,"Data: US EIA \nhttp://www.eia.gov/dnav/ng/hist_xls/N9050US2a.xls")
box(lwd=2)
dev.off()

Data[edit]

Data: download a spreadsheet from http://www.eia.gov/dnav/ng/hist_xls/N9050US2a.xls convert to a .csv file and save to your R working directory

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 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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current10:50, 26 August 2012Thumbnail for version as of 10:50, 26 August 2012650 × 506 (7 KB)Mrfebruary (talk | contribs)User created page with UploadWizard

The following page uses this file:

Metadata