Learn R Programming

animint2 (version 2025.1.28)

limits: Generate correct scale type for specified limits

Description

Generate correct scale type for specified limits

Usage

limits(lims, var)

Arguments

var

name of variable

limits

vector of limits

Examples

Run this code
animint2:::limits(c(1, 5), "x")
animint2:::limits(c(5, 1), "x")
animint2:::limits(c("A", "b", "c"), "x")
animint2:::limits(c("A", "b", "c"), "fill")
animint2:::limits(as.Date(c("2008-01-01", "2009-01-01")), "x")

Run the code above in your browser using DataLab