position_fill {ggplot2}R Documentation

position_fill

Description

Stack overlapping objects on top of one another, and standardise have equal height

Usage

position_fill(...)

Arguments

... ignored

Details

This page describes position_fill, see layer and qplot for how to create a complete plot from individual components.

Value

A layer

Author(s)

Hadley Wickham, http://had.co.nz/

See Also

Examples

## Not run: 
    # See ?geom_bar and ?geom_area for more examples
    ggplot(mtcars, aes(x=factor(cyl), fill=factor(vs))) + geom_bar(position="fill")
      
    ggplot(diamonds, aes(x=price)) + geom_bar(position="fill")
    ggplot(diamonds, aes(x=price, fill=cut)) + geom_bar(position="fill")
    ggplot(diamonds, aes(x=price, fill=clarity)) + geom_bar(position="fill")
    ggplot(diamonds, aes(x=price, fill=color)) + geom_bar(position="fill")
## End(Not run)

[Package ggplot2 version 0.6 Index]