I still can't tell exactly what you want, but maybe something like this?
> legend(30,0.08, c("Normal density","Kernel
> density"),col=c("red","blue"),lty=1:1,lwd=1:1,bty="n")
> legend(30,0.06, c(paste("Mean =",round(mean(CDR3),1)),paste("Median
> =",median(CDR3))),col=c("red","black"),pch=19:19,
Hi,
Sorry to forget providing the data before.
I want to get a histogram with the legend for my data. I
drew a normal density curve and kernel density curve in the histogram,
and I also label mean and median in the X axis. From the code, I got
two legend: One shows "Normal Density" and "Kernel De
Hi,
I want to get a histogram with the legend for my data. I drew a normal density
curve and kernel density curve in the histogram, and I also label mean and
median in the X axis. From the code, I got two legend: One shows "Normal
Density" and "Kernel Density" and their corresponding lines, the
3 matches
Mail list logo