limits: Generate correct scale type for specified limits

View source: R/limits.R

limitsR Documentation

Generate correct scale type for specified limits

Description

Generate correct scale type for specified limits

Usage

limits(lims, var, call = caller_env())

Arguments

lims

vector of limits

var

name of variable

Examples

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 April 18, 2024, 7:52 p.m.