Learn R Programming

ggthemes (version 2.1.0)

geom_rangeframe: Range Frames

Description

Axis lines which extend to the maximum and minimum of the plotted data.

Usage

geom_rangeframe(mapping = NULL, data = NULL, stat = "identity",
  position = "identity", sides = "bl", fun_min = min, fun_max = max,
  ...)

Arguments

mapping
The aesthetic mapping, usually constructed with aes or aes_string. Only needs to be set at the layer level if you are overriding the plot defaults.
data
A layer specific dataset - only needed if you want to override the plot defaults.
stat
The statistical transformation to use on the data for this layer.
position
The position adjustment to use for overlapping points on this layer
sides
A string that controls which sides of the plot the frames appear on. It can be set to a string containing any of "trbl", for top, right, bottom, and left.
fun_min
Function used to calculate the maximum of the range frame line.
fun_max
Function used to calculate the minimum of the range frame line.
...
other arguments passed on to layer. This can include aesthetics whose values you want to set, not map. See layer for more details.

Aesthetics

[results=rd,stage=build]{ggthemes:::rd_aesthetics("geom_tufteboxplot", ggthemes:::GeomRangeFrame)} (ggplot(mtcars, aes(wt, mpg)) + geom_point() + geom_rangeframe() + theme_tufte()) Tufte, Edward R. (2001) The Visual Display of Quantitative Information, Chapter 6. Other geom tufte: geom_tufteboxplot