vectorplot displays vector fields from Raster
objects using arrows.
streamplot displays streamlines with a procedure inspired by
the FROLIC algorithm (see references): for each point (droplet)
of a jittered regular grid, a short streamline portion
(streamlet) is calculated by integrating the underlying vector
field at that point. The main color of each streamlet indicates local
vector magnitude (slope). Streamlets are composed of points
whose sizes, positions and color degradation encode the local vector
direction (aspect).
A Raster object. If isField=FALSE the vector
field is calculated internally from the result of
terrain.
layers
A numeric or character which should indicate the layers
to be displayed.
maxpixels
A numeric, number of cells to be shown if
region=TRUE or if region is a Raster* object.
narrows
A numeric, number of arrows.
lwd.arrows
Numeric, width of the lines of the arrows
col.arrows
character, color of the arrows
length
Unit, extent of the arrow head.
margin
Logical, if TRUE two marginal graphics show the summaries
of the object.
scaleSlope
Logical or numeric. If TRUE the slope (vector
magnitude) is scaled (but not centered) with its standard
deviation. If it is a numeric, the slope is scaled with this value.
It is not used if isField='dXY'.
aspX, aspY
Numeric. Multipliers to convert the slope values into
horizontal (aspX) and vertical (aspY) displacements.
key.arrow
A reference (or legend) vector. If is not NULL, it is a list with two named
components, size, a numeric to define the length of the arrow
(default 1), and label, a character to define the label
(default '').
uLayers, vLayers
Numeric, indexes of layers with horizontal and
vertical components, respectively, when isField='dXY' and the
RasterStack has more than 2 layers. If missing, the horizontal
components are the layers of the first half of the object, and the
vertical components are the layers of the second half.
droplet
A list whose elements define the droplet
configuration:
cropExtent: Percentage of the object
extent to be cropped (default .97) to avoid droplets at boundaries
pc: A numeric. It is the percentage of cells used to compute
droplets. Its default value is 0.5. Therefore, only the 0.5% of the
cells are used. For example, if you use a Raster with 180 rows and 360
columns (64800 cells), with this default value streamplot will
produce 324 droplets.
streamlet
A list whose elements define the streamlet
configuration:
L: length of the streamlet (number of
points, default 10)
A list to define the graphical parameters. For
streamplot there is an specific theme, streamTheme.
parallel
Logical, TRUE (default) to use parallel
package.
cl
a cluster object. Read the help page of
parLapply for details.
mc.cores
The number of cores to use if parallel=TRUE and
no cl is provided. Read the help page of mclapply
for details.
region
Logical, if TRUE the region is displayed as the
background using levelplot. It can be a Raster* with
the same extent and resolution as object.
reverse
Logical, TRUE if arrows or streamlets go against the direction
of the gradient.
isField
If TRUE the object is a vector field. Thus,
object must be a Raster* with two layers, slope (local vector
magnitude) and aspect (local vector direction), in
this order, following the philosophy of terrain. The
slope layer will be used as the background if region is
TRUE.
If isField='dXY'object must be a Raster* with two
layers representing the horizontal and the vertical components,
respectively. The slope is computed and used as the background if
region is TRUE.
unit
Character, angle units of the aspect layer if
isField=TRUE: 'radians' or 'degrees'.
...
Additional arguments for levelplot
Author(s)
Oscar Perpi<c3><83><c2><b1><c3><83><c2><a1>n Lamigueiro