vector_field_from_func.color: Plot vector field for 2D. Color is the strength of the...

View source: R/vector_field.R

vector_field_from_func.colorR Documentation

Plot vector field for 2D. Color is the strength of the vector.

Description

Plot vector field for 2D. Color is the strength of the vector.

Usage

vector_field_from_func.color(
  dxf,
  dyf,
  colrate,
  arrow.length = NA,
  arrow.sublength = 0.25,
  xyrate = 1,
  xlim = c(0, 1),
  ylim = c(0, 1),
  num = 20,
  col = rev(heat.colors(100)),
  limit = NULL,
  add = FALSE,
  ...
)

Arguments

dxf

function for the gradient for x-axix

dyf

function for the gradient for y-axix

colrate

influence of the strength on the color.

arrow.length

Basic length of the arrow.

arrow.sublength

Basic sub length of the arrow.

xyrate

relative length of x and y values.

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.


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.