plotAz: Polar plot of orientations (azimuths)

Description Usage Arguments Examples

View source: R/plotting.R

Description

This function creates a polar plot of azimuthal data using plotly.

Usage

1
2
plotAz(az, obj, loc, col = "blue", lwd = 1, lty = 1, len = 1,
  legend = F)

Arguments

az

Array of azimuths or data frame with column named True.Azimuth. Values outside the [0, 360] range will be ignored.

obj

(Optional) A skyscapeR.object object created with sky.objects for displaying the azimuths of celestial objects. Beware that this assumes a single location (given by parameter loc) and a flat horizon of zero degrees.

loc

(Optional) This can be either a vector with the latitude and longitude of the location, or a skyscapeR.horizon object. Only necessary for plotting potential celestial targets.

col

(Optional) Single colour or colour pallete to use for plotting measurements.

lwd

(Optional) Line width to plot measurements. Defaults to 1.

lty

(Optional) Line type to plot measurements. Defaults to 1.

len

(Optional) Length of line to plot measurements.

legend

(Optional) Show legend. Defaults to FALSE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Plot some azimuth data:
az <- c(120, 100, 93, 97, 88, 115, 112, 67)
plotAz(az)

# To visualise this data against the common solar and lunar targets:
tt <- sky.objects(c('sun','moon'), epoch=-2000, lty=1, lwd=1.5, col=c('black','red'))
plotAz(az, obj=tt, loc=c(35,-8), legend=T)

# To visualise the same data with shorter lines
plotAz(az, obj=tt, loc=c(35,-8), len=0.2)

# To display only celestial objects
plotAz(az=NULL, obj=tt, loc=c(35,-8), legend=T)

f-silva-archaeo/skyscapeR documentation built on Jan. 15, 2019, 3:22 a.m.