R version 2.6.1 (2007-11-26) Copyright (C) 2007 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(4.43,4.43,4.44,4.44,4.44,4.45,4.47,4.48,4.48,4.5,4.52,4.52,4.53,4.53,4.63,4.66,4.67,4.68,4.69,4.69,4.7,4.71,4.72,4.72,4.72,4.73,4.74,4.76,4.81,4.82,4.83,4.83,4.84,4.89,4.92,4.95,4.95,5.01,5.05,5.08,5.11,5.14,5.17,5.18,5.2,5.22,5.24,5.28,5.29,5.33,5.4,5.43,5.46,5.46,5.46,5.47,5.49,5.5,5.54,5.55,5.55,5.56,5.6,5.61,5.63,5.64,5.66,5.67,5.69,5.77,5.77,5.78,5.8,5.82,5.85,5.87,5.88,5.9,5.91,5.94,5.97,5.98,6,6.01,6.02) > ylab = 'Density' > xlab = 'Value' > #'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: Write here your technical program description (don't use hard returns!) > postscript(file="/var/www/html/rcomp/tmp/1h09s1203882715.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity1<-density(x,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, kernel = "gaussian", na.rm = TRUE) Data: x (85 obs.); Bandwidth 'bw' = 0.1898 x y Min. :3.861 Min. :0.001206 1st Qu.:4.543 1st Qu.:0.106743 Median :5.225 Median :0.463457 Mean :5.225 Mean :0.366075 3rd Qu.:5.907 3rd Qu.:0.561871 Max. :6.589 Max. :0.686577 > postscript(file="/var/www/html/rcomp/tmp/2ref11203882715.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity2<-density(x,kernel='epanechnikov',na.rm=TRUE) > plot(mydensity2,main='Epanechnikov Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/34qdu1203882715.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity3<-density(x,kernel='rectangular',na.rm=TRUE) > plot(mydensity3,main='Rectangular Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4m1tw1203882715.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity4<-density(x,kernel='triangular',na.rm=TRUE) > plot(mydensity4,main='Triangular Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ybd31203882715.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity5<-density(x,kernel='biweight',na.rm=TRUE) > plot(mydensity5,main='Biweight Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6p27x1203882715.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity6<-density(x,kernel='cosine',na.rm=TRUE) > plot(mydensity6,main='Cosine Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7wjjj1203882715.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > mydensity7<-density(x,kernel='optcosine',na.rm=TRUE) > plot(mydensity7,main='Optcosine Kernel',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > load(file='/var/www/html/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/www/html/rcomp/tmp/8vrlc1203882715.tab") > > system("convert tmp/1h09s1203882715.ps tmp/1h09s1203882715.png") > system("convert tmp/2ref11203882715.ps tmp/2ref11203882715.png") > system("convert tmp/34qdu1203882715.ps tmp/34qdu1203882715.png") > system("convert tmp/4m1tw1203882715.ps tmp/4m1tw1203882715.png") > system("convert tmp/5ybd31203882715.ps tmp/5ybd31203882715.png") > system("convert tmp/6p27x1203882715.ps tmp/6p27x1203882715.png") > system("convert tmp/7wjjj1203882715.ps tmp/7wjjj1203882715.png") > > > proc.time() user system elapsed 1.623 1.191 2.084