plot_basis | R Documentation |
Plots the bi-square basis functions created by scampr::simple_basis()
.
plot_basis(x, ..., add = FALSE)
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 |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.