vector_field_from_func | R Documentation |
Plot vector field for 2D. Length is the strength of the vector.
vector_field_from_func(
dxf,
dyf,
arrow.length,
arrow.sublength,
xlim = c(0, 1),
ylim = c(0, 1),
num = 20,
col = "black",
limit = NULL,
add = FALSE,
...
)
dxf |
function for the gradient for x-axix |
dyf |
function for the gradient for y-axix |
arrow.length |
Basic length of the arrow. |
arrow.sublength |
Basic sub length of the arrow. |
xlim |
range of x-axis |
ylim |
range of y-axis |
num |
Density of the arrows. |
col |
color of the vector |
limit |
limit function with two argument x,y. If limit(x,y) return true, the arrow is not drown. |
add |
boolian: whether add existign plot space or not. |
... |
same with the plot function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.