prettyRange | R Documentation |
This function returns a pretty range of values for a given a vector of type
numeric
.
prettyRange(x)
x |
A vector of numerical values. |
This function intends to generate range with round values.
A vector of two values specifying the pretty the range of values.
base::pretty()
# Example 1: vec <- stats::runif(20) range(vec) prettyRange(vec) # Example 2: prettyRange(c(3.849,3.88245))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.