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