View source: R/pretty_axis_support.R
seq_extend | R Documentation |
This function extends a regular sequence in both directions towards user-defined limits.
seq_extend(x, lim)
x |
A sequence. |
lim |
A vector of two which specify the lower and upper limits. |
The function returns a sequence.
Edward Lavender
# extend_seq(2:4, c(0, 10))
# extend_seq(2:4, c(0, 4))
# x <- seq.Date(as.Date("2016-01-01"), as.Date("2016-01-10"), 1)
# extend_seq(x, as.Date(c("2015-12-10", "2016-01-20")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.