vector_field | R Documentation |
Plot vector field for 2D. Length is the strength of the vector.
vector_field(
x_seq,
y_seq,
dx,
dy,
arrow.length,
arrow.sublength,
col = "black",
limit = NULL,
add = FALSE,
...
)
x_seq |
x-axix |
y_seq |
y-axix |
dx |
matrix of selection gradient for x |
dy |
matrix of selection gradient for y |
arrow.length |
Basic length of the arrow. |
arrow.sublength |
Basic sub length of the arrow. |
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.