coord_polar

Polar coordinates

Details

The polar coordinate system is most commonly used for pie charts, which are a stacked bar chart in polar coordinates.

This coordinate system has one argument, theta, which determines which variable is mapped to angle and which to radius. Valid values are "x" and "y".

See layer and qplot for more information on creating a complete plot from multiple components.

Examples


> qplot(length, rating, data=movies, geom=c("point", "smooth")) + coord_polar()