| geom_step {ggplot2} | R Documentation |
Connect observations by stairs
geom_step(mapping=NULL, data=NULL, stat="step", 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 |
Equivalent to plot(type='s').This page describes geom_step, see layer and qplot for how to create a complete plot from individual components.
A layer
The following aesthetics can be used with geom_step. Aesthetics are mapped to variables in the data with the aes function: geom\_step(\code{aes}(x = var))
x: x position (required)
y: y position (required)
colour: border colour
size: size
linetype: line type
Hadley Wickham, http://had.co.nz/
geom_line: Functional (ordered) lines
geom_polygon: Filled paths (polygons)
geom_segment: Line segments
## Not run:
# Simple quantiles/ECDF from examples(plot)
x <- sort(rnorm(47))
qplot(x, 1:47, geom="step")
plot(x, type="s")
## End(Not run)