I am trying to make an area plot with the different areas are overlaid on one another rather than stacked.
I have a dataframe that looks like this:
As Nathan wrote you have to use geom_area(position = "identity", ...)
geom_area(position = "identity", ...)
But before this you should reorder the levels of variable:
df$variable <- factor(df$variable, unique(df[order(df$value, decreasing = T),"variable"]) )
or
df$variable <- reorder(df$variable, df$value, function(x) -max(x) )