Description Usage Arguments 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 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
... |
other arguments passed on to |
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.