| type_spline | R Documentation |
Type function for plotting a cubic (or Hermite) spline interpolation.
Arguments are passed to spline; see this latter function
for default argument values.
type_spline(
n = NULL,
method = "fmm",
xmin = NULL,
xmax = NULL,
xout = NULL,
ties = mean
)
n |
if |
method |
specifies the type of spline to be used. Possible
values are |
xmin, xmax |
left-hand and right-hand endpoint of the
interpolation interval (when |
xout |
an optional set of values specifying where interpolation is to take place. |
ties |
handling of tied |
See spline for further details on the available
interpolation methods.
# "spline" type convenience string
tinyplot(dist ~ speed, data = cars, type = "spline")
# Use `type_spline()` to pass extra arguments for customization
tinyplot(dist ~ speed,
data = cars, type = type_spline(method = "natural", n = 25),
add = TRUE, lty = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.