Shane,

Do you have code to create each plot separately?

If so, you can use par(new=TRUE) to overlay a second plot over the first
with a different y-axis scale.  See, for example,
http://robjhyndman.com/hyndsight/r-graph-with-two-y-axes/

Jean


On Tue, May 20, 2014 at 8:39 AM, Shane Carey <careyshan@gmail.com> 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
>
> Thanks
>
>
>
> --
> Shane
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> 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.
>

	[[alternative HTML version deleted]]

