[R] barplot + plot

Marc Schwartz mschwartz at medanalytics.com
Mon Oct 14 16:29:32 CEST 2002


> -----Original Message-----
>
> SNIP
>
> Thus, your example code should look like:
> 
> barplot(1:5, ylim=c(0, 9))
> par(new= T)
> par(yaxs = "i")
> plot(1:5, 9:5, type="b", axes=FALSE, ylim=c(0,6))
> axis(4)
> box()
> 

A quick clarification.  I just noted that I reversed the ylim settings
from Juli's original example code.

Of course the example code should be:

barplot(1:5, ylim=c(0, 6))
par(new= T)
par(yaxs = "i")
plot(1:5, 9:5, type="b", axes=FALSE, ylim=c(0,9))
axis(4)
box()

Marc Schwartz
<In need of more coffee this morning>



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list