Hi all,

I ended up using twoord.plot from library(plotrix)
It worked great. Thanks for all the help.
Cheers


On Wed, May 21, 2014 at 8:15 AM, Jim Lemon <jim@bitwrit.com.au> wrote:

> On Tue, 20 May 2014 02:39:17 PM Shane Carey wrote:
> > Hi,
> >
> > I amtrying to plot a cfd with a histogram on one plot. The problem is
> the
> > scale (y-axis) of the plots are hugely different and as a result the
> > histogram plot is hard to read. Are there any examples of plots like
> this
> > done in R:
> >
> >
> http://ej.iop.org/images/0952-4746/32/3/325/Full/jrp428239f9_online.jpg
> >
> Hi Shane,
> Try this:
>
> mmp<-c(4,23,38,33,6,6,6,2,1,0,1,0)
> cmmp<-cumsum(mmp)
> dft<-seq(0,550,by=50)
> library(plotrix)
> twoord.plot(lx=dft,ly=mmp,rx=dft,ry=cmmp,
>  type=c("bar","b"),halfwidth=25,lcol=NA)
>
> Jim
>
>


-- 
Shane

	[[alternative HTML version deleted]]

