[R] Reccomendation for graphics package
h.wickham at gmail.com
Fri May 1 22:23:18 CEST 2009
On Fri, May 1, 2009 at 2:38 PM, Zeljko Vrba <zvrba at ifi.uio.no> wrote:
> On Fri, May 01, 2009 at 01:06:34PM -0500, hadley wickham wrote:
>> It should be trivial with ggplot2 too, but it's hard to provide
>> concrete advice without a concrete problem.
> Elementary problem:
> qplot(wg, v.realtime, data=df.best.medians$gv1, facets = . ~ n, colour=sp)
> produces a nice plot. Adding a geom="line" produces everything *except* the
> lines that show the dataset! What am I doing wrong? (R-2.9.0, on 64-bit Vista;
> package freshly installed from CRAN)
If you have a categorical x axis, you need to specify the group
aesthetic which defines what group of points should form a line. It's
hard to tell what that should be from your example, maybe sp?
More information about the R-help