Re: [R] ggplot2 and facet

2011-06-07 Thread Ista Zahn
Hi James, On Tue, Jun 7, 2011 at 5:12 PM, James Rome wrote: > Times is extracted from a larger data frame with the city in it also, so > the variables are not unique. But I tried what you suggested, and get >>     pp2 = qplot(time, error, times) >>     pp2 = pp2 + facet_wrap(~ runway) >>     prin

Re: [R] ggplot2 and facet

2011-06-07 Thread James Rome
Something is very strange: > pp2 = qplot(time, error, times) > plot(pp2) Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' is a list, but does not have components 'x' and 'y' On 6/7/2011 4:12 PM, Ista Zahn wrote: Hi James, Specify data = times in the qplot call and get rid of times$ everywhere

Re: [R] ggplot2 and facet

2011-06-07 Thread James Rome
Times is extracted from a larger data frame with the city in it also, so the variables are not unique. But I tried what you suggested, and get > pp2 = qplot(time, error, times) > pp2 = pp2 + facet_wrap(~ runway) > print(pp2) Error in eval(expr, envir, enclos) : object 'error' not found

Re: [R] ggplot2 and facet

2011-06-07 Thread Ista Zahn
Hi James, Specify data = times in the qplot call and get rid of times$ everywhere. For example, do pp2 = qplot(time, error, data = times) pp2 + facet_wrap(~ runway) Best, Ista On Tue, Jun 7, 2011 at 4:01 PM, James Rome wrote: > I have a data frame  (attached) that has interpolated EOT erro

[R] ggplot2 and facet

2011-06-07 Thread James Rome
I have a data frame (attached) that has interpolated EOT errors for each minute before flight landing. It also has the runway and an index for the flight: > > times[1:4,] time error runway flight 10 -0.0220623504R 1 21 -0.0796163104R 1 32 -0.1379538004R