Editing aesthetics of my Histogram in R
问题 I made this code RendBio= RtBio m<-mean(RtBio) std<-sqrt(var(RtBio)) hist(RendBio, density=20, prob=TRUE, xlab="Rendimientos Bio Pappel", ylim=c(0, 20), main="normal curve over histogram", col="brown1") curve(dnorm(x, mean=m, sd=std), col="darkgoldenrod1", lwd=2, add=TRUE, yaxt="n") When I run the code there are lines in my histogram but I'd like it to be filled with e solid color. Is there a way to do this? 回答1: If you want transparency then you need to use an argument to rgb with the same