powered by
Draw an interactive area plot
ggArea( data, mapping, position = "stack", palette = "Blues", reverse = TRUE, alpha = 0.4, size = 0.3, use.label = TRUE, use.labels = TRUE )
A data.frame
Set of aesthetic mappings created by aes or aes_.
Either "stack" or "fill"
A character string indicating the color palette
If true, reverse palette colors
Transparency
Line size
Logical. Whether or not use column label in case of labelled data
Logical. Whether or not use value labels in case of labelled data
An area plot
# NOT RUN { require(gcookbook) require(ggplot2) ggArea(uspopage,aes(x=Year,y=Thousands,fill=AgeGroup)) ggArea(uspopage,aes(x=Year,y=Thousands,fill=AgeGroup),position="fill") # }
Run the code above in your browser using DataLab