autoplot.basis: Autoplot spline basis instances

View source: R/fortify_basis.R

autoplot.basisR Documentation

Autoplot spline basis instances

Description

Autoplot spline basis instances

Usage

## S3 method for class 'basis'
autoplot(object, data, n = 256, ...)

Arguments

object

spline basis object

data

x-values at which to evaluate the splines. Optional. By default, an evenly spaced sequence of 256 values covering the range of the splines will be used.

n

If data is not provided, instead use an evenly-spaced sequence of x-values of this length (plus one, since both endpoints are included). If data is provided, this argument is ignored.

...

Ignored.

Value

ggplot

Examples

## Not run: 
library(splines)
x <- seq(0, 1, by=0.001)
spl <- bs(x, df=6)
autoplot(spl)
autoplot(spl, n=5)

## End(Not run)

ggfortify documentation built on May 29, 2024, 7:19 a.m.