Hi,

I found this example for producing multiple histograms;

 require(plotrix)
 l <- list(rnorm(50),rnorm(50,sd=2),rnorm(50,mean=3))
 multhist(l)


Now I want something like that, for creating multiple density distributions (in one plot).

But I have two variables for one density distribution and "multhist" only allows me to add one variable;
  x <- seq(from=0, to=14, by=1)
  y <- dbinom(x, 14, 0.7, log = FALSE)


Is there a way to make a histogram-like plot with multiple bars side by side (for different distributions) like in the example?

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to