Learn R Programming

ggthemes (version 2.1.0)

scale_x_tufte: Axis breaks inclusive of extreme values

Description

These scales draw pretty axis breaks that always include the extreme values of the data.

Usage

scale_x_tufte(breaks = scales_extended_range_breaks(expand), ...,
  expand = c(0.04, 0))

scale_y_tufte(breaks = scales_extended_range_breaks(expand), ..., expand = c(0.04, 0))

Arguments

...
additional parameters passed to continuous_scale

See Also

range_breaks

Examples

Run this code
(ggplot(mtcars, aes(x = wt + runif(1), y = mpg))
 + geom_point()
 + geom_rangeframe()
 + theme_tufte()
 + scale_x_tufte()
 + scale_y_tufte()
 )

Run the code above in your browser using DataLab