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(1.894,1.757,3.582,5.321,5.561,5.907,4.944,4.966,3.258,1.964,1.743,1.262,2.086,1.793,3.548,5.672,6.084,4.914,4.990,5.139,3.218,2.179,2.238,1.442,2.205,2.025,3.531,4.977,7.998,4.880,5.231,5.202,3.303,2.683,2.202,1.376,2.422,1.997,3.163,5.964,5.657,6.415,6.208,4.500,2.939,2.702,2.090,1.504,2.549,1.931,3.013,6.204,5.788,5.611,5.594,4.647,3.490,2.487,1.992,1.507,2.306,2.002,3.075,5.331,5.589,5.813,4.876,4.665,3.601,2.192,2.111,1.580,2.288,1.993,3.228,5.000,5.480,5.770,4.962,4.685,3.607,2.222,2.467,1.594,2.228,1.910,3.157,4.809,6.249,4.607,4.975,4.784,3.028,2.461,2.218,1.351,2.070,1.887,3.024,4.596,6.398,4.459,5.382,4.359,2.687,2.249,2.154,1.169,2.429,1.762,2.846,5.627,5.749,4.502,5.720,4.403,2.867,2.635,2.059,1.511,2.359,1.741,2.917,6.249,5.760,6.250,5.134,4.831,3.695,2.462,2.146,1.579) > par4 = '12' > par3 = '' > par2 = '' > par1 = '' > ylimmax = '' > ylimmin = '' > ylab = 'number of marriages' > xlab = 'month' > main = 'Marriages' > 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. 1.169 2.173 3.190 3.616 4.992 7.998 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1u9qd1409038008.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/2aq9q1409038008.tab") > > try(system("convert tmp/1u9qd1409038008.ps tmp/1u9qd1409038008.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.539 0.109 0.649