expand_limits

0th

Percentile

Expand the plot limits with data.

panels or all plots. This function is a thin wrapper around geom_blank that makes it easy to add such values.

Usage
expand_limits(...)
Arguments
...
named list of aesthetics specifying the value (or values) that should be included in each scale.
Aliases
  • expand_limits
Examples
p <- qplot(mpg, wt, data = mtcars)
p + expand_limits(x = 0)
p + expand_limits(y = c(1, 9))
p + expand_limits(x = 0, y = 0)

qplot(mpg, wt, data = mtcars, colour = cyl) +
 expand_limits(colour = seq(2, 10, by = 2))
qplot(mpg, wt, data = mtcars, colour = factor(cyl)) +
 expand_limits(colour = factor(seq(2, 10, by = 2)))
Documentation reproduced from package ggplot2, version 0.9.3.1, License: GPL-2

Community examples

Looks like there are no examples yet.