plot.skyscapeR.starphases: Plot stellar phase and seasonality

View source: R/plotting.R

plot.skyscapeR.starphasesR Documentation

Plot stellar phase and seasonality

Description

This function creates a plot of stellar seasonality and phases/events.

Usage

## S3 method for class 'skyscapeR.starphases'
plot(x, y, show.labels = T, show.legend = T, show.grid = F, sort.by, pal, ...)

Arguments

x

Object of skyscapeR.starphases format.

y

(Optional) A second object of skyscapeR.starphases format or a list of skyscapeR.starphases objects for plotting (see Examples).

show.legend

(Optional) Only used when plotting seasonality of multiple stars (see example below). Default is TRUE.

show.grid

(Optional) Boolean to control whether to show a grid of months. Default is FALSE

pal

(Optional) Colour palette for displaying phases/seasons.

...

Additional arguments to be passed to plot.

See Also

star.phases

Examples

# Plot the seasonality of Aldebaran for 3999 BCE:
s1 <- star.phases('Aldebaran',-4000, c(35,-8, 200))
plot(s1)

# Plot seasonality of several stars
s2 <- star.phases('Alnilam',-4000, c(35,-8, 200))
s3 <- star.phases('Elnath',-4000, c(35,-8, 200))
plot(s1, s2)
plot(s1, list(s2,s3))
plot(sl, show.legend=F, show.grid=T)

f-silva-archaeo/skyscapeR documentation built on Sept. 25, 2024, 7:50 p.m.