View source: R/pretty_axis_support.R
define_lim_init | R Documentation |
. This function defines initial limits for a sequence of numbers.
define_lim_init(x, at = NULL, lim = NULL)
x |
A vector which contains user-supplied data. |
at |
(optional) A vector which contains user-supplied axis positions. |
lim |
(optional) A vector of length two which contains user-supplied limits. |
If the user has supplied limits, this function checks limits to ensure that they are sensible, and flags them with a 'user' attribute (so that user-defined limits are recognisable and remain fixed). If the user has not supplied limits, limits are extracted from axis tick mark positions, if specified, or otherwise from the data provided.
This function returns a vector of two numbers representing initial limits.
Edward Lavender
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.