position_fill {ggplot2} | R Documentation |
Stack overlapping objects on top of one another, and standardise have equal height
position_fill(width=NULL, height=NULL, ...)
width |
NULL |
height |
NULL |
... |
ignored |
This page describes position_fill, see layer
and qplot
for how to create a complete plot from individual components.
A layer
Hadley Wickham, http://had.co.nz/
## Not run: # See ?geom_bar and ?geom_area for more examples ggplot(mtcars, aes(x=factor(cyl), fill=factor(vs))) + geom_bar(position="fill") cde <- geom_histogram(position="fill", binwidth = 500) ggplot(diamonds, aes(x=price)) + cde ggplot(diamonds, aes(x=price, fill=cut)) + cde ggplot(diamonds, aes(x=price, fill=clarity)) + cde ggplot(diamonds, aes(x=price, fill=color)) + cde ## End(Not run)