Re: [R] plot with two y axes BUT unaligned x axis

2011-06-16 Thread Yuliya Matveyeva
Use the `xlim` parameter of the `plot` function. IFor example, if X1 and X2 are the variables that contain the values of your x-axis, do xlim1 - range(X1,X2), than do plot(, xlim = xlim1,...) Hope this helps. 2011/6/15 bjmjarrett bjmjarr...@gmail.com Hi all, I have scoured the

Re: [R] plot with two y axes BUT unaligned x axis

2011-06-16 Thread Jim Lemon
On 06/15/2011 09:51 PM, bjmjarrett wrote: Hi all, I have scoured the archives of this forum but nothing quite seems to fit the bill... I would like to plot a graph displaying two variables (y axes) that share date as the x axis. However, the date values for each variable are not the same - for

[R] plot with two y axes BUT unaligned x axis

2011-06-15 Thread bjmjarrett
Hi all, I have scoured the archives of this forum but nothing quite seems to fit the bill... I would like to plot a graph displaying two variables (y axes) that share date as the x axis. However, the date values for each variable are not the same - for example, some parasitoids were not released