Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

Re: [R] Plot two graphs with different ranges in one

Rolf Turner

2009-07-02

Replies: Find Java Web Hosting

Author LoginPost Reply

On 3/07/2009, at 11:29 AM, Hongwei Dong wrote:

> Hi, I'm trying to plot two variables in one graph. One ranges
> between 0 and
> 1, while the other ranges between 50 and 500. Can I plot them in
> one graph
> with similar scale?

Yes you can, but DON'T!!! Such graphs are terribly misleading and
confusing.

But if you insist --- and be it on your own head --- see

http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-base:2yaxes

Don't say I didn't warn you!

 cheers,

   Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.