geom_crossbar {ggplot2} | R Documentation |
Hollow bar with middle indicated by horizontal line
geom_crossbar(mapping=NULL, data=NULL, stat="identity", position="identity", fatten=2, ...)
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 |
fatten |
a multiplicate factor to fatten middle bar by |
... |
other arguments |
This page describes geom_crossbar, see layer
and qplot
for how to create a complete plot from individual components.
A layer
The following aesthetics can be used with geom_crossbar. Aesthetics are mapped to variables in the data with the aes function: geom\_crossbar(aes(x = var))
x
: x position (required)
y
: y position (required)
ymin
: bottom (vertical minimum) (required)
ymax
: top (vertical maximum) (required)
colour
: border colour
fill
: internal colour
size
: size
linetype
: line type
alpha
: transparency
Hadley Wickham, http://had.co.nz/
geom_errorbar
: error bars
geom_pointrange
: range indicated by straight line, with point in the middle
geom_linerange
: range indicated by straight line + examples
stat_summary
: examples of these guys in use
geom_smooth
: for continuous analog
## Not run: # See geom_linerange for examples ## End(Not run)