R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(127269 + ,75620 + ,88255 + ,104300 + ,53891 + ,23637 + ,239665 + ,26847 + ,82376 + ,108063 + ,130696 + ,106111 + ,77157 + ,156938 + ,111186 + ,193991 + ,137623 + ,129655 + ,90067 + ,118206 + ,128389 + ,226536 + ,67073 + ,89947 + ,101451 + ,121691 + ,147649 + ,101001 + ,88745 + ,145509 + ,158310 + ,82934 + ,144300 + ,50968 + ,169102 + ,129402 + ,197808 + ,102540 + ,76806 + ,135028 + ,158063 + ,97980 + ,99862 + ,49417 + ,79864 + ,238236 + ,66613 + ,133589 + ,179955 + ,104416 + ,88737 + ,24019 + ,178249 + ,64672 + ,85913 + ,149157 + ,136059 + ,147863 + ,157786 + ,97096 + ,194551 + ,166067 + ,107928 + ,136136 + ,105283 + ,74153 + ,95612 + ,108093 + ,118089 + ,51000 + ,97034 + ,52125 + ,96331 + ,106760 + ,82657 + ,159858 + ,161402 + ,90287 + ,74853 + ,87661 + ,85840 + ,224167 + ,107905 + ,82275 + ,80953 + ,90496 + ,67181 + ,155920 + ,124542 + ,84443 + ,93028 + ,106264 + ,84922 + ,132246 + ,145658 + ,106443 + ,108558 + ,138044 + ,136773 + ,183992 + ,114968 + ,126632 + ,80456 + ,39948 + ,108674 + ,101041 + ,114400 + ,153398 + ,57427 + ,78870 + ,127197 + ,119023 + ,20764 + ,99305 + ,61675 + ,72554 + ,168643 + ,21054 + ,151340 + ,23175 + ,157461 + ,103303 + ,48355 + ,51536 + ,38214 + ,86725 + ,159468 + ,90604 + ,183334 + ,137626 + ,204060 + ,114015 + ,51227 + ,147342 + ,210790 + ,41227 + ,198679 + ,81901 + ,130930 + ,82730 + ,50656 + ,195126 + ,115032 + ,173260 + ,144766 + ,57297 + ,112567 + ,142346 + ,0 + ,14688 + ,98 + ,455 + ,0 + ,0 + ,111354 + ,148268 + ,0 + ,203 + ,7199 + ,46660 + ,17547 + ,73567 + ,969 + ,76925) > par1 = '0' > ylab = 'Density' > xlab = 'Total time spent in RFC' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: > if (par1 == '0') bw <- 'nrd0' > if (par1 != '0') bw <- as.numeric(par1) > postscript(file="/var/wessaorg/rcomp/tmp/1bi0z1321030283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity1<-density(x,bw=bw,kernel='gaussian',na.rm=TRUE) > plot(mydensity1,main='Gaussian Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > mydensity1 Call: density.default(x = x, bw = bw, kernel = "gaussian", na.rm = TRUE) Data: x (164 obs.); Bandwidth 'bw' = 1.509e+04 x y Min. :-45268 Min. :3.325e-09 1st Qu.: 37282 1st Qu.:7.465e-07 Median :119832 Median :2.334e-06 Mean :119832 Mean :3.025e-06 3rd Qu.:202383 3rd Qu.:5.227e-06 Max. :284933 Max. :8.235e-06 > postscript(file="/var/wessaorg/rcomp/tmp/2uf2c1321030283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity2<-density(x,bw=bw,kernel='epanechnikov',na.rm=TRUE) > plot(mydensity2,main='Epanechnikov Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/3e47v1321030283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity3<-density(x,bw=bw,kernel='rectangular',na.rm=TRUE) > plot(mydensity3,main='Rectangular Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/4ekfv1321030283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity4<-density(x,bw=bw,kernel='triangular',na.rm=TRUE) > plot(mydensity4,main='Triangular Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5nj7z1321030283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity5<-density(x,bw=bw,kernel='biweight',na.rm=TRUE) > plot(mydensity5,main='Biweight Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6itis1321030283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity6<-density(x,bw=bw,kernel='cosine',na.rm=TRUE) > plot(mydensity6,main='Cosine Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7ubwn1321030283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity7<-density(x,bw=bw,kernel='optcosine',na.rm=TRUE) > plot(mydensity7,main='Optcosine Kernel',xlab=xlab,ylab=ylab) > grid() > 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,'Properties of Density Trace',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Bandwidth',header=TRUE) > a<-table.element(a,mydensity1$bw) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'#Observations',header=TRUE) > a<-table.element(a,mydensity1$n) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/811pc1321030283.tab") > > try(system("convert tmp/1bi0z1321030283.ps tmp/1bi0z1321030283.png",intern=TRUE)) character(0) > try(system("convert tmp/2uf2c1321030283.ps tmp/2uf2c1321030283.png",intern=TRUE)) character(0) > try(system("convert tmp/3e47v1321030283.ps tmp/3e47v1321030283.png",intern=TRUE)) character(0) > try(system("convert tmp/4ekfv1321030283.ps tmp/4ekfv1321030283.png",intern=TRUE)) character(0) > try(system("convert tmp/5nj7z1321030283.ps tmp/5nj7z1321030283.png",intern=TRUE)) character(0) > try(system("convert tmp/6itis1321030283.ps tmp/6itis1321030283.png",intern=TRUE)) character(0) > try(system("convert tmp/7ubwn1321030283.ps tmp/7ubwn1321030283.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.793 0.334 2.138