plot_pfun | R Documentation |
Plot a 2d or 3d parametric mathematical function f(t) = (x(t), y(t), z(t))
plot_pfun(
f = NULL,
from = NULL,
to = NULL,
points = 100,
col = "black",
cartesian_plane = TRUE,
cartesian_plane_col = "black",
grid_at_x = NULL,
grid_at_y = NULL,
add = FALSE,
...
)
f |
a named list of function |
from |
domain (plotting) starting point |
to |
domain (plotting) ending point |
points |
number of points |
col |
the function color |
cartesian_plane |
wheter to add a cartesian plane ... |
cartesian_plane_col |
... and its color |
grid_at_x |
at_x param for add_grid |
grid_at_y |
at_y param for add_grid |
add |
if TRUE the function is added within an existing graph |
... |
other params given to plot |
Nothing. As a side effect the plot of pch
.
pfun <- list(x = function(t) 2 * cos(t), y = function(t) 3 * sin(t))
plot_pfun(pfun, from = 0, to = pi)
plot_pfun(pfun, from = 0, to = 2*pi)
pfun2 <- list(x = function(t) 1 * cos(t),
y = function(t) 1 * sin(t),
z = function(t) 1 * t)
plot_pfun(pfun2, from = 0, to = 100, points = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.