Re: [R] Add points to subplots

2014-06-18 Thread Greg Snow
There is a subplot function in the TeachingDemos package, but its purpose is to put a small plot somewhere inside of a large plot. You can use it to position 2 plots on a blank plot. It does return the information that you need to then go back and modify the individual plots. However, it does no

Re: [R] Add points to subplots

2014-06-18 Thread Luca Cerone
Hi Greg and Jim. In the end I solved by modifying the function. I was just wondering if there is some function similar to Matlab's subplot, which let you change the active plot. Next time I will run in the same issue I will try the split.screen function proposed by Jim. Thanks a lot for the help,

Re: [R] Add points to subplots

2014-06-17 Thread Greg Snow
I am not familiar with the pamr.plotcv function, but in general if it uses par(mfrow=c(2,1)) to set up for the multiple plots then your problem with going back to the first plot is that you have lost the other information (such as user coordinates) needed to add to the 1st plot. You can see that w

Re: [R] Add points to subplots

2014-06-13 Thread Jim Lemon
On Fri, 13 Jun 2014 12:02:34 PM Luca Cerone wrote: > Thanks David, > I already did this, but in case the code gets updated I will have to > re-add the annotation, which I do not think it is ideal. > > I was just wondering if there is an easy solution to this. > Thanks a lot for the help, > Hi Luc

Re: [R] Add points to subplots

2014-06-13 Thread Luca Cerone
Thanks David, I already did this, but in case the code gets updated I will have to re-add the annotation, which I do not think it is ideal. I was just wondering if there is an easy solution to this. Thanks a lot for the help, Cheers, Luca 2014-06-13 3:12 GMT+02:00 David Winsemius : > > On Jun 12

Re: [R] Add points to subplots

2014-06-12 Thread David Winsemius
On Jun 12, 2014, at 8:06 AM, Luca Cerone wrote: > Dear all, > I am running some analysis using the pamr package (available on CRAN). > > One of the plots I produce is made using the function "pamr.plotcv". > This displays two plots in the same figure (using par(mfrow=c(2,1)). > > When the figur

[R] Add points to subplots

2014-06-12 Thread Luca Cerone
Dear all, I am running some analysis using the pamr package (available on CRAN). One of the plots I produce is made using the function "pamr.plotcv". This displays two plots in the same figure (using par(mfrow=c(2,1)). When the figure is created, I would like to be able to add some points and lin