R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(456.54,409.71,443.7,495.05,584.76,599.86,567.27,591.42,626.23,644.07,520.01,434.11,511.21,501.48,522.1,500.87,488.45,396.48,517.36,572.02,559.21,493.05,599.72,589.46,504.74,439.12,432.59,509.86,486.47,472.24,552.16,572.61,560.26,497.76,418.69,424.39,426.06,412.41,364.46,380.62,393.62,376.71,404.36,443.43,604.89,621.42,440.79,321.16,304.01,340.1,464.44,358.15,415.79,436.65,537.29,543.97,539.22,434.87,329.21,232.38,351.1,418.38,448.61,556.42,561.9,654.87,686.7,608.39,537.55,546.21,564.24,443.23,417.53,434.47,474.39,528.79,520.09,559.05,527.45,527.25,528.42,473.7,474.99,433.88,424.6,406.73,419.62,451.19,470.14,439.75,515.5,571.51,547.13,493.47,414.98,352.94,361.63,394.7,408.36,443.83,448.75,457.59,542.93,506.8,499.06,433,428.24,383.92,417.37,403.97,439.64,447.14,444.25,484.44,460.27,492.36,471.85,517.99,340.37,339.07) > par4 = '12' > par3 = 'Prijs Braziliaanse sinaasappelen' > par2 = 'http://www.mongabay.com/commodities/price-charts/price-of-brazilian-oranges.html' > par1 = 'Prijs Braziliaanse sinaasappelen' > ylimmax = '' > ylimmin = '' > ylab = 'Prijs' > xlab = 'Tijd' > main = 'Prijs Braziliaanse sinaasappelen' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: > #Technical description: > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 232.4 419.4 471.0 474.8 530.9 686.7 > n <- length(x) > postscript(file="/var/www/rcomp/tmp/1f6si1291977990.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (par4=='No season') { + plot(x,col=2,type='b',main=main,xlab=xlab,ylab=ylab,xaxt='n') + axis(1,at=seq(1,n,10)) + } > if (par4!='No season') { + plot(x,col=2,type='b',main=main,xlab=xlab,ylab=ylab,xaxt='n') + axis(1,at=seq(1,n,par4)) + grid(nx=0,ny=NULL,col='black') + abline(v=seq(1,n,par4),col='black',lty='dotted') + } > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Univariate Dataseries',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Name of dataseries',header=TRUE) > a<-table.element(a,par1) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Source',header=TRUE) > a<-table.element(a,par2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Description',header=TRUE) > a<-table.element(a,par3) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Number of observations',header=TRUE) > a<-table.element(a,length(x)) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/rcomp/tmp/2cyqr1291977990.tab") > > try(system("convert tmp/1f6si1291977990.ps tmp/1f6si1291977990.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.410 0.280 0.696