[R] barplots with 2 different scales

Jim Lemon jim at bitwrit.com.au
Fri Oct 1 11:03:31 CEST 2010


On 10/01/2010 09:19 AM, Jeremy Claisse wrote:
> Is there a way to create barplots with pairs of bars plotted on 2 different
> scales (i.e some bars would be plotted according to the scale on the y-axis
> on the left and other bars plotted according to a different scale on the
> right axis)?
>
Hi Jeremy,
You can do this with the twoord.plot function in the plotrix package.

Jim



More information about the R-help mailing list