plotDirections: plotDirections

Description Usage Arguments Examples

Description

Plot directions data as polar plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
plotDirections(
  azimuth,
  zenith,
  value,
  azimuthOffsetVal = 0,
  outerRadius = max(zenith) + max(zenith) * 0.01,
  zenithLabPch = 20,
  zenithLabCol = "darkgrey",
  zenithLabCex = 1,
  brks = seq(min(value), max(value), length.out = 10),
  cols = c("dark grey", colorRampPalette(c("purple", "blue3", "yellow",
    "red"))(length(brks) - 3), "firebrick4"),
  ...
)

Arguments

azimuth

Numeric. Azimuth angle with DART conventions

zenith

Numeric. Zenith angle with DART conventions

value

Numeric. Values associated with the given azimuth and zenith angles

azimuthOffsetVal

Numeric. Scene offset (degrees) as shown in the DART GUI.

outerRadius

Numeric. Maximum radius (degrees) of polar plot

zenithLabPch

Numeric. Pch for zenith label.

zenithLabCol

Character. Colour for zenith label.

zenithLabCex

Numeric. Cex for zenith label.

brks

Numeric. Breaks for colour palette e.g. seq(0, 1, by = 0.1). Optional.

cols

Character. Colours for given breaks. Optional.

...

Additional options passed to points() when drawing directions points.

Examples

1
2
3
4
5
6
7
#Inputs are DART oriented directions (as seen in the DART files and \link{Directions-class})
plotDirections(azimuth = rep(225, 10),
               zenith = seq(0, 90, length.out = 10),
               value = 1:10)
#Output plot uses 'upward' directions from ground, where e.g.:
  0deg (270deg) azimuth faces north (west)
  0deg (90deg) zenith faces upward (horizon)

willmorrison1/daRt documentation built on Feb. 23, 2022, 2:13 a.m.