Description Usage Value Examples
This function creates a ggplot theme for earthquake timeline plots. It is intended to be used with geom_timeline and geom_timeline_label.
1 | eqTheme()
|
This function changes the theme of a ggplot.
1 2 3 4 5 6 7 | eq_data <- eq_clean_data("NOAA_earthquakes.txt")
eq_data <- subset(eq_data, Country == "Mexico" & YEAR >= 2000)
ggplot2::ggplot(eq_data) +
geom_timeline_label(ggplot2::aes(x=DATE, y=Country, fill=TOTAL_DEATHS,
size=EQ_PRIMARY, label=LocalLocation)) +
eqTheme()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.