[R] Over lay 2 scale in same plot
Jim Lemon
jim at bitwrit.com.au
Sat Sep 11 11:34:14 CEST 2010
On 09/10/2010 10:43 PM, mamunbabu2001 wrote:
>
> Hi Josh,
> Thanks for your reply. I gave a reply yesterday but found that it was not
> posted.
> I managed to plot the bar pot and overlay points.
>
> The problem I am facing now is the spread of Y scale. The values I am
> plotting
> in Y scale are very close. so they look pretty flat. (lowest value 7.5 and
> highest
> value 8.5 , so if the ranges in y scale is 6-8, 8-10 , the values looks
> pretty flat.)
> How can I make the spread of Y scale i.e 6.2 - 6.4 - 6.6 - ...... 8.8 - 10
> so that
> values does not look flat. I have added an image below.
Hi Mamun,
You can get two different scales e.g. 0-10 on the left and 7-9 on the
right, but you will want to color code the two axes and plots so that
the viewer knows which plot goes with which scale. If you want to try
this, look at twoord.plot in the plotrix package.
Jim
More information about the R-help
mailing list