Learn R Programming

skyscapeR (version 1.0.0)

plot.skyscapeR.horizon: Plot horizon data

Description

This function creates a plot of horizon data.

Usage

# S3 method for skyscapeR.horizon
plot(
  x,
  show.az = F,
  xlim,
  ylim,
  obj,
  refraction = F,
  col.ground = "#fdae61",
  ...
)

Arguments

x

Object of skyscapeR.horizon format.

show.az

(Optional) Boolean that controls whether to display azimuth values or cardinal directions. Defaults to FALSE.

xlim

(Optional) Azimuth rage for plotting.

ylim

(Optional) Altitude rage for plotting.

obj

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

refraction

(Optional) Boolean switch controlling whether to take refraction into account when displaying the paths of celestial objects.

col.ground

(Optional) Color of the ground. Defaults to #fdae61.

...

Additional arguments to be passed to plot.

See Also

downloadHWT, sky.objects

Examples

Run this code
# NOT RUN {
# Plot a horizon retrieved from HeyWhatsThat:
hor <- downloadHWT('HIFVTBGK')
plot(hor)

# Add the paths of the solstices and equinoxes sun in the year 1999 BC:
tt <- sky.objects('solar extremes', epoch=-2000, col='blue')
plot(hor, obj=tt)
# }

Run the code above in your browser using DataLab