Skip to content
Prev 278654 / 398502 Next

Superimpose two graphs

On 11/28/2011 05:46 PM, Vikram Bahure wrote:
Hi Vikram,
Try this:

library(plotrix)
ylim<-range(c(Reserves.RS,RS.active))
twoord.plot(ly=RS.active,ry=Reserves.RS,rcol=1,type=c("bar","p"),
lylim=ylim,rylim=ylim)

I'm assuming that you have the same number of values in each vector, if 
not, you may have to specify xlim as well.

Jim