Description Usage Arguments See Also Examples
View source: R/geom_timeline.R
Plot NOAA Significant Earthquake Data on a timeline.
1 2 3 4 5 6 7 8 9 10 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
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 |
geom_point()
for parameters and options.
1 2 3 4 5 6 7 8 | # Assumes the NOAA earthquake dataset has been obtained per method
# in `data-raw/earthquakes.R`.
ggplot2::ggplot(
eq_clean_data(earthquakes),
ggplot2::aes(x = date, y = country, colour = deathsTotal),
alpha = 1
) +
geom_timeline()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.