qwrap | R Documentation |
Wraps periodic data from one specified range to the other in one line.
qwrap(object, ..., .group = NULL)
object, |
the object to wrap |
..., |
named formulas with the form |
.group |
optional group column (see wrap) |
qwrap
is a shortcut to wrap(periodic(obejct, x = range_from), x = range_to)
x <- seq(0, 360 - 20, by = 20)
df <- data.frame(x = x, y = cos(x*pi/180))
qwrap(df, x = c(0, 360) ~ c(-180, 180))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.