| plotBars | R Documentation | 
Bar plot of orientations (declination)
plotBars(
  val,
  unc,
  names,
  unit = "Declination",
  col = "blue",
  shade = TRUE,
  mark = TRUE,
  sort = FALSE,
  xrange,
  yrange,
  obj,
  show.obj.label = TRUE
)
| 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  | 
| show.obj.label | (Optional) Boolean to control whether to label the celestial objects in the polar plot. Defaults to TRUE. | 
sky.objects
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.