R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-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(503334,503737,504101,504504,504894,505297,505687,506090,506493,506883,507286,507676,508079,508482,508846,509249,509639,510042,510432,510835,511238,511628,512031,512421,512824,513227,513604,514007,514397,514800,515190,515593,515996,516386,516789,517179,517582,517985,518349,518752,519142,519545,519935,520338,520741,521131,521534,521924,522327,522730,523094,523497,523887,524290,524680,525083,525486,525876,526279,526669,527072,527475,527839,528242,528632,529035,529425,529828,530231,530621,531024,531414,531817,532220,532597,533000,533390,533793,534183,534586,534989,535379,535782,536172,536575,536978,537342,537745,538135,538538,538928,539331,539734,540124,540527,540917,541320,541723,542087,542490,542880,543283,543673,544076,544479,544869,545272,545662) > par4 = '12' > par3 = '' > par2 = '' > par1 = '' > ylimmax = '' > ylimmin = '' > ylab = 'Aantal exemplaren' > xlab = 'Tijd ( in maanden )' > main = 'Aantal verkochte exemplaren La Libre' > par4 <- '12' > par3 <- '' > par2 <- '' > par1 <- '' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Plot of univariate data series (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_univariatedataseries.wasp/ > #Source of accompanying publication: > # > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 503300 513900 524500 524500 535100 545700 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1g72p1437224693.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/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/2ya851437224693.tab") > > try(system("convert tmp/1g72p1437224693.ps tmp/1g72p1437224693.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.545 0.079 0.625