plotBars: Bar plot of orientations (declination)

Description Usage Arguments See Also Examples

View source: R/plotting.R

Description

Bar plot of orientations (declination)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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

1
2
3
4
5
6
7
# 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)

skyscapeR documentation built on Oct. 30, 2021, 1:06 a.m.