Description Usage Value Examples
This function create an ad hoc geometry to visualize the timeline of earthquakes. Each earthquake is represented by a point, with size and color aestethics ready to be assigned a variable.
1 2 3 |
a ggplot2 geometry
1 2 3 4 5 6 7 8 | ## Not run:
data %>%
dplyr::filter(COUNTRY == "USA" & YEAR > 2000) %>%
ggplot() +
geom_timeline(aes(x = DATE, y = COUNTRY, size = EQ_PRIMARY, color = DEATHS)) +
labs(size = "Richter Scale value:", color = "# of Deaths:")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.