Re: [R] multiple graphs with a single legend and trellis graph

2015-07-08 Thread John Kane
e: [R] multiple graphs with a single legend and trellis graph > > Dear Jim, > > first of all, thank you very much :) > when I run the code: > > myDF <- rbind(mse.alpha1, mse.alpha2) # assumes both data frames have > the same variables in the same order > > >

Re: [R] multiple graphs with a single legend and trellis graph

2015-07-08 Thread Rosa Oliveira
Dear Jim, first of all, thank you very much :) can you please explain me how to use split.screen? I’m felling so silly, I could not run your example because of x11(width=10,height=4). I already installed package XQuartz because X11 library was missing , nonetheless, after I have installed it

Re: [R] multiple graphs with a single legend and trellis graph

2015-07-08 Thread Rosa Oliveira
Dear Jim, first of all, thank you very much :) can you please explain me how to use split.screen? I attach my previous graphs and my data, so you can see :) I’m very naive and new in R :( I really tried: library(plotrix) # start a wide plotting device x11(width=10,height=4) y<-runi

Re: [R] multiple graphs with a single legend and trellis graph

2015-07-08 Thread Rosa Oliveira
Dear Jim, first of all, thank you very much :) when I run the code: myDF <- rbind(mse.alpha1, mse.alpha2) # assumes both data frames have the same variables in the same order myDF$ID <- factor(rep(c("alpha1", "alpha2"), times = c(nrow(mse.alpha1), nrow(mse.alpha2))) ) library(reshape2)

Re: [R] multiple graphs with a single legend and trellis graph

2015-07-08 Thread Jim Lemon
Hi Rosa, As you are using base graphics, here is an example that might be of use. As we don't have access to your data, I have used something similar to the toy data in the example for the "panes" function. This could be done better using the "split.screen" function, so let me know if you would lik

Re: [R] multiple graphs with a single legend and trellis graph

2015-07-07 Thread David Winsemius
On Jul 7, 2015, at 2:45 PM, Rosa Oliveira wrote: > Iam trying to plot 6 graphs in one single plot and I was able to, nonetheless > I wanted that all graphs had just 1 common legend, as the legend is the same > for all the 6 graphs and there is no sense in repeating it 6 times and even > more,