Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data:
30 30 34 28 29 30 32 32 33 34 33 33 33 33 34 34 34 34 33 33 34 32 32 33 36 38 33 35 36 33 33 34 33 23 25 27 28 39 36 35 34 33 40 33 34 35 32 31 34 34 35 33 36 36 35 35 35 35 35 34 27 28 29 30 31 32 30 30 31 31 31 31 31 32 32 32 32 32 33 33 34 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 44 44 44 44 44 43 43 43 43 43 42 42 41 40 46 46 46 46 46 46 46 46 46 47 47 47 55 54 53 53 52 52 52 52 51 51 50 50 49 49 49 49 49 49 48 43 43 44 46 47 47 47 47 47 47 47 48 48 48 48 48 48 50 50 50 51
Sample Range:
(leave blank to include all observations)
From:
To:
Smoothing Bandwidth (leave zero for default)
Display values
(?)
no
yes
Number of density points
(?)
Chart options
Label y-axis:
Label x-axis:
R Code
bitmap(file='density1.png') par(bg=rgb(0.2,0.4,0.6)) mydensity1<-density(x,kernel='gaussian',na.rm=TRUE) plot(mydensity1,main='Gaussian Kernel',xlab=xlab,ylab=ylab) grid() dev.off() mydensity1 bitmap(file='density2.png') par(bg=rgb(0.2,0.4,0.6)) mydensity2<-density(x,kernel='epanechnikov',na.rm=TRUE) plot(mydensity2,main='Epanechnikov Kernel',xlab=xlab,ylab=ylab) grid() dev.off() bitmap(file='density3.png') par(bg=rgb(0.2,0.4,0.6)) mydensity3<-density(x,kernel='rectangular',na.rm=TRUE) plot(mydensity3,main='Rectangular Kernel',xlab=xlab,ylab=ylab) grid() dev.off() bitmap(file='density4.png') par(bg=rgb(0.2,0.4,0.6)) mydensity4<-density(x,kernel='triangular',na.rm=TRUE) plot(mydensity4,main='Triangular Kernel',xlab=xlab,ylab=ylab) grid() dev.off() bitmap(file='density5.png') par(bg=rgb(0.2,0.4,0.6)) mydensity5<-density(x,kernel='biweight',na.rm=TRUE) plot(mydensity5,main='Biweight Kernel',xlab=xlab,ylab=ylab) grid() dev.off() bitmap(file='density6.png') par(bg=rgb(0.2,0.4,0.6)) mydensity6<-density(x,kernel='cosine',na.rm=TRUE) plot(mydensity6,main='Cosine Kernel',xlab=xlab,ylab=ylab) grid() dev.off() bitmap(file='density7.png') par(bg=rgb(0.2,0.4,0.6)) mydensity7<-density(x,kernel='optcosine',na.rm=TRUE) plot(mydensity7,main='Optcosine Kernel',xlab=xlab,ylab=ylab) grid() dev.off() load(file='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='mytable.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation