R version 3.4.0 (2017-04-21) -- "You Stupid Darkness" Copyright (C) 2017 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(3221816,3209817,3197649,3172468,3421574,3408392,3221816,3097770,3109769,3109769,3123120,3147118,3184467,3184467,3160469,3097770,3421574,3470922,3396393,3221816,3296514,3184467,3234998,3259165,3284346,3221816,3234998,3147118,3421574,3508271,3433742,3296514,3445741,3284346,3433742,3421574,3458923,3321695,3470922,3458923,3682848,3632317,3433742,3333694,3470922,3284346,3421574,3445741,3496272,3384394,3445741,3483090,3620318,3508271,3359044,3197649,3347045,2936375,3135119,3246997,3359044,3197649,3197649,3197649,3284346,3160469,2997891,2861846,2960542,2575222,2811315,2948543,2973724,2836496,2848495,2811315,2936375,2848495,2675270,2550041,2761798,2301949,2600572,2736617,2736617,2575222,2425995,2413996,2550041,2425995,2190071,2027493,2202070,1791569,2164721,2363296,2425995,2288767,2115373,2239419,2288767,2251418,1878097,1704872,1828749,1455597,1840917,1978145,2090023,1903447,1728870,1828749,1878097,1779401,1406249,1243671,1392898,982397,1430247,1704872) > par4 = '12' > par3 = 'Omzet Mercedes A-klasse op jaarbasis' > par2 = 'nbb' > par1 = 'Omzet Mercedes A-klasse (op jaarbasis)' > ylimmax = as.numeric(3900000) > ylimmin = as.numeric(950000) > ylab = 'Omzet' > xlab = 'Tijd (2007/1-2016/12)' > main = 'Omzet Mercedes A-klasse' > par4 <- '12' > par3 <- 'Omzet Mercedes A-klasse op jaarbasis' > par2 <- 'nbb' > par1 <- 'Omzet Mercedes A-klasse (op jaarbasis)' > #'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. 982397 2401321 3129120 2835244 3324695 3682848 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/15pkt1498567746.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/2w5y01498567746.tab") > > try(system("convert tmp/15pkt1498567746.ps tmp/15pkt1498567746.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.535 0.202 1.909