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, show.labels = T, show.legend = T, show.grid = F, pal, ...)

Arguments

x

Object of skyscapeR.starphases format.

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))
sl <- list(s1,s2,s3) # join them in a list
class(sl) <- 'skyscapeR.starphases' # necessary to call the correct plot function
plot(sl)
plot(sl, show.legend=F, show.grid=T)

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