Skip to content
Prev 207638 / 398503 Next

Strange tick in ggplot geom_area; and ordering, again

I just remember that to work around the problem, you can just manually
order the data frame:

cf1 <- cf1[with(cf1, order(dur, score, decreasing = T)), ]
qplot(dur,p,data=cf1, fill=score, order = rev(score), geom = "area")

Hadley