Re: [R] Strange tick in ggplot geom_area; and ordering, again

2010-01-26 Thread hadley wickham
> > In case you have a temporary workaround, it would be nice to have it. It’s a > show stopper for my report. Bars are not an option, because the curve looks > too jaggy. > I just remember that to work around the problem, you can just manually order the data frame: cf1 <- cf1[with(cf1, order(d

Re: [R] Strange tick in ggplot geom_area; and ordering, again

2010-01-26 Thread hadley wickham
> can you also reproduce the “triangles” problem? Is it just a trivial > corollary of the order-bug? The triangles are there because you have a layer of points (from the qplot default) and layer of areas. Setting geom = "area" in qplot fixes that. Hadley -- http://had.co.nz/

Re: [R] Strange tick in ggplot geom_area; and ordering, again

2010-01-26 Thread Dieter Menne
, January 26, 2010 5:18 PM To: Dieter Menne Subject: Re: [R] Strange tick in ggplot geom_area; and ordering, again Hi Dieter, It looks like a bug: Order works fine with bars: qplot(factor(dur),weight=p,data=cf1, fill=score, geom = "bar", order = rev(score)) but not

Re: [R] Strange tick in ggplot geom_area; and ordering, again

2010-01-26 Thread Dieter Menne
tick in ggplot geom_area; and ordering, again Hi Dieter, It looks like a bug: Order works fine with bars: qplot(factor(dur),weight=p,data=cf1, fill=score, geom = "bar", order = rev(score)) but not with areas: qplot(dur, p, data=cf1, fill=score, geom = "area", order

Re: [R] Strange tick in ggplot geom_area; and ordering, again

2010-01-26 Thread hadley wickham
Hi Dieter, It looks like a bug: Order works fine with bars: qplot(factor(dur),weight=p,data=cf1, fill=score, geom = "bar", order = rev(score)) but not with areas: qplot(dur, p, data=cf1, fill=score, geom = "area", order = rev(score)) I'll add it to my to do list. Hadley On Tue, Jan 26, 2010 a

[R] Strange tick in ggplot geom_area; and ordering, again

2010-01-26 Thread Dieter Menne
In the area plots below, I see 4 triangle ticks at both sides of the bar; I believe these are non-stacked values for p, but they are definitively confusing. In addition, I would like to get the order of the colors in the plot the same as in the legend, and not arranged alphabetically (the factor