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(30280,30170,30070,29860,31930,31830,30280,29240,29350,29350,29450,29660,29550,30380,30690,30380,31520,30790,29140,28730,28730,28930,28110,28730,28210,28730,29550,29860,30590,30280,28420,27690,27380,27690,27180,27380,26760,27800,28310,28420,30380,30380,27800,27180,27180,27490,26140,25520,24800,25010,25940,25210,27180,27490,25520,24800,24390,24800,23660,23250,21600,22010,22110,22220,24180,23970,21600,20560,20150,20670,18700,17360,14880,15090,15090,14880,16640,16740,14670,14260,13430,14570,12500,11260,8890,9400,8780,8990,10540,10850,9820,9710,9710,11060,8680,7130,4440,6610,6300,6410,8890,8580,7440,7960,7960,9820,7650,6410,4440,7030,6820,6920,9090,8890,8160,8270,8780,9920,8160,6720) > par4 = '12' > par3 = 'Deze reeks geeft de omzet van de CD-verkoop van Beatles aan.' > par2 = 'Onbekend' > par1 = 'Omzet CD-verkoop Beatles' > ylimmax = '' > ylimmin = '' > ylab = 'omzet CD-verkoop' > xlab = 'tijd (in maanden)' > main = 'Univariate Data' > par4 <- '12' > par3 <- 'Deze reeks geeft de omzet van de CD-verkoop van Beatles aan.' > par2 <- 'Onbekend' > par1 <- 'Omzet CD-verkoop Beatles' > #'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. 4440 9792 23820 20170 28500 31930 > n <- length(x) > postscript(file="/var/www/rcomp/tmp/1vcyy1342350636.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/2ehwt1342350636.tab") > > try(system("convert tmp/1vcyy1342350636.ps tmp/1vcyy1342350636.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.460 0.260 0.684