plotBars: Bar plot of orientations (declination)

View source: R/plotting.R

plotBarsR Documentation

Bar plot of orientations (declination)

Description

Bar plot of orientations (declination)

Usage

plotBars(
  val,
  unc,
  names,
  unit = "Declination",
  col = "blue",
  shade = TRUE,
  mark = TRUE,
  sort = FALSE,
  xrange,
  yrange,
  obj,
  show.obj.label = TRUE
)

Arguments

val

Array of declination or azimuth values.

unc

Single value or array of measurement uncertainty

names

(Optional) Array of names of measurements in val

unit

(Optional). Either 'Declination' or 'Azimuth'. Defaults to 'Declination'.

col

(Optional) Color to plot measurements in. Defaults to blue.

shade

(Optional) Boolean to control whether to shade a polygon of measurements. Defaults to TRUE

mark

(Optional) Boolean to control whether to mark the declination value. Defaults to TRUE

sort

(Optional) Boolean to control whether to sort the measurements by their declination value. Defaults to FALSE

xrange

(Optional) Array of limits for x-axis.

yrange

(Optional) Array of limits for y-axis.

obj

(Optional) A skyscapeR.object object created with sky.objects for displaying the declination values of celestial objects.

show.obj.label

(Optional) Boolean to control whether to label the celestial objects in the polar plot. Defaults to TRUE.

See Also

sky.objects

Examples

# Plot some declination data:
decs <- c(10, 12, -5, 4)
plotBars(decs, unc=5)

# To visualize this data against the common solar and lunar targets:
tt <- sky.objects(c('solar extremes','lunar extremes'), epoch=-2000, lty=c(2,3))
plotBars(decs, unc=5, obj=tt)

f-silva-archaeo/skyscapeR documentation built on Sept. 24, 2023, 8:14 p.m.