Description Usage Value Note References Examples
This function creates an interactive (theoretical) H-R diagram on a small dataset (n=57 stars) from McDonald Observatory.
1 | interactiveHR(filename)
|
An interactive plot with stars of differing temperatures and absolute magnitudes. Star postions are given as well in the dataset.
The interactive plot also provides a tooltip that can be used to hover over individual stars to show additional information such as apparent magnitude, spectral type, constellation, right ascension and declination.
The exercises that accompanies this data may be found at https://mcdonaldobservatory.org/sites/default/files/pdfs/teachers/hrd.pdf
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# Use the dataframe name from the import routine.
library(dplyr)
library(ggplot2)
library(plotly)
interactiveHR(filename) #Filename will be the imported McDonald Observatory Dataset.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.