Could be ...
legend("topright",legend=c("Histogram","Kernel Density
Estimate"),lty=c(NA,1), lwd=c(NA,2), pch = c(15, NA), col =
c("lightblue", "black"), merge=TRUE,inset=.01,cex=.8,adj=0)
A.
John Kerpel wrote:
Hi folks! I'm trying to get a histogram legend to give me a filled box and
a line
Hi folks! I'm trying to get a histogram legend to give me a filled box and
a line. The problem is I keep 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"
2 matches
Mail list logo