Skip to content

Strange tick in ggplot geom_area; and ordering, again

1 message · Hadley Wickham

#
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