limits: Generate correct scale type for specified limits

Description Usage Arguments Examples

View source: R/limits.r

Description

Generate correct scale type for specified limits

Usage

1

Arguments

var

name of variable

limits

vector of limits

Examples

1
2
3
4
5
ggplot2:::limits(c(1, 5), "x")
ggplot2:::limits(c(5, 1), "x")
ggplot2:::limits(c("A", "b", "c"), "x")
ggplot2:::limits(c("A", "b", "c"), "fill")
ggplot2:::limits(as.Date(c("2008-01-01", "2009-01-01")), "x")

hadley/ggplot2 documentation built on Aug. 20, 2018, 4:41 a.m.