interactiveHR: Simple Interactive H-R Diagram (McDonald Observatory Dataset)

Description Usage Value Note References Examples

Description

This function creates an interactive (theoretical) H-R diagram on a small dataset (n=57 stars) from McDonald Observatory.

Usage

1
interactiveHR(filename)

Value

An interactive plot with stars of differing temperatures and absolute magnitudes. Star postions are given as well in the dataset.

Note

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.

References

The exercises that accompanies this data may be found at https://mcdonaldobservatory.org/sites/default/files/pdfs/teachers/hrd.pdf

Examples

 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)   

cowboy2718/Hertzsprung-Russell documentation built on May 23, 2019, 1:46 p.m.