Description Usage Value Note Examples
This function creates an observational H-R diagram on a dataset from the Yale Trigonometric Parallax Dataset.
1 |
Returns a H-R plot based on absolute magnitude and color of stars.
The data comes from the R package GDAdata which must be installed. It plots absolute magnitude by color index.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Use the dataframe name from the import routine.
library(dplyr)
library(ggplot2)
install.packages("GDAdata")
data(HRstars, package="GDAdata")
yale_hr_diagram
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.