From: Rui Cardoso <rrc_at_fct.unl.pt>

Date: Thu 20 Oct 2005 - 03:27:00 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 20 03:31:44 2005

Date: Thu 20 Oct 2005 - 03:27:00 EST

Hi,

I have a problem about graphics. I would like to plot two graphs: a barplot and curve. Here is the code:

> barplot(dpois(0:45,20),xlim=c(0,45),names=0:45)

> curve(dnorm(x,20,sqrt(20)),from=0,to=45,add=T)

Both graphs are drawn in the same figure, however the scale in both graphs dooes not match. For some reason the second plot is shifted to left. I think there is a problem concerning the axis scale.

Thanks a lot.

Rui

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 20 03:31:44 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:40:46 EST
*