uvplot: plot centre as vectors

View source: R/plotfunctions.R

uvplotR Documentation

plot centre as vectors

Description

display the radial and angular component of the spectrum's centre as arrows.

Usage

uvplot(uv, z = NULL, x = NULL, y = NULL, col = "green",
  zcol = grDevices::gray.colors(32, 0, 1), n = 42, f = 1,
  length = 0.05, ...)

Arguments

uv

an array of dimension nx x ny x 2 , containing the u- and v-component, result of cen2uv

z

image to show in the background, defaults to sqrt(x^2+y^2)

x, y

optional x- and y-coordinates for the plot, must match the dimensions of z

col

color of the arrows

zcol

color scale for the image

n

number of arrows in one direction

f

factor by which to enlarge the arrows

length

length of the arrowhead in inches

...

further arguments passed to image

Details

The pivot of the arrows is at the location to which the u- and v-component belong. No arrowhead is displayed since the egdges detcted by the cdtwt have an orientation but no sign. The default size of the arrows is such that a 'velocity' of 1 corresponds to 5% of the shorter image side.

See Also

cen2uv

Examples

uv <- cen2uv( dt2cen( fld2dt( blossom ) ) )
uvplot( uv, z=blossom )

dualtrees documentation built on Oct. 4, 2023, 5:10 p.m.