plot_basis: Plot basis functions for objects of class 'bf.df' ### WIP ###

View source: R/plot_basis.R

plot_basisR Documentation

Plot basis functions for objects of class 'bf.df' ### WIP ###

Description

Plots the bi-square basis functions created by scampr::simple_basis().

Usage

plot_basis(x, ..., add = FALSE)

Arguments

x

a basis function data frame ("bf.df") object

...

additional plotting arguments

add

logical indicating whether to add the basis functions to the current plot

Examples

# Create the basis functions on the flora quadrature
bfs <-  simple_basis(9, flora$quad)

# plot the quadrature points
plot(flora$quad[,c("x", "y")], asp = 1, pch = ".", col = "blue")

# add the plot of the bi-square basis functions
plot_basis(bfs, add = T)

ElliotDovers/scampr documentation built on March 17, 2024, 3:27 p.m.