geom_rug {ggplot2} | R Documentation |
Marginal rug plots
geom_rug(mapping=NULL, data=NULL, stat="identity", position="identity", ...)
mapping |
mapping between variables and aesthetics generated by aes |
data |
dataset used in this layer, if not specified uses plot dataset |
stat |
statistic used by this layer |
position |
position adjustment used by this layer |
... |
ignored |
This page describes geom_rug, see layer
and qplot
for how to create a complete plot from individual components.
A layer
The following aesthetics can be used with geom_rug. Aesthetics are mapped to variables in the data with the aes
function: geom\_rug(\code{aes}(x = var))
colour
: border colour
size
: size
linetype
: line type
Hadley Wickham, http://had.co.nz/
## Not run: p <- ggplot(mtcars, aes(x=wt, y=mpg)) p + geom_point() p + geom_point() + geom_rug() p + geom_point() + geom_rug(position='jitter') ## End(Not run)