search for: x_den

Displaying 2 results from an estimated 2 matches for "x_den".

Did you mean: x_len
2009 Jan 14
1
Histograms: Lines and boxes
...tting both filled boxes and a line. How can I get rid of the second box from the code below? x<-rnorm(1000,mean=0,sd=1) hist(x, breaks = 50, main="Histogram of x",freq=FALSE, xlab=" x", ylab="Density",col="lightblue", border="black") x_dens<-density(x,kernel="gaussian") points(x_dens,type="l",lwd=3) legend("topright",legend=c("Histogram","Kernel Density Estimate"),lty=c(-1,1),lwd=c(-1,2),fill=c("lightblue"),merge=TRUE,inset= .01,cex=.8,adj=0) Thx! John...
2009 Jan 14
1
Histograms: Boxes and lines
...eep getting both filled boxes and a line. How can I get rid of the second box from the code below? x<-rnorm(1000,mean=0,sd=1) hist(x, breaks = 50, main="Histogram of x",freq=FALSE, xlab=" x", ylab="Density",col="lightblue", border="black") x_dens<-density(x,kernel="gaussian") points(x_dens,type="l",lwd=3) legend("topright",legend=c("Histogram","Kernel Density Estimate"),lty=c(-1,1),lwd=c(-1,2),fill=c("lightblue"),merge=TRUE,inset=.01,cex=.8,adj=0) Thx! John [[alternativ...