plot.skyscapeR.starphases | R Documentation |
This function creates a plot of stellar seasonality and phases/events.
## S3 method for class 'skyscapeR.starphases'
plot(x, y, show.labels = T, show.legend = T, show.grid = F, sort.by, pal, ...)
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. |
star.phases
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.