Description Usage Arguments Details Examples
Creates additional notation for the timeline chart (see geom_timeline
for more details)
1 2 3 |
mapping |
Set of aesthetic mappings created by |
stat |
The statistical transformation to use on the data for this layer, as a string. |
data |
a dataframe containing NOAA details |
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 |
This geom adds a vertical line to each data point with a text annotation (e.g. the location of the earthquake) attached to each line. There is an option to subset to n_max number of earthquakes, where we take the n_max largest (by magnitude) earthquakes.
1 2 3 4 5 6 7 8 9 | ## Not run:
data %>%
filter(COUNTRY %in% c("USA", "CHINA")) %>%
eq_clean_data()%>%
ggplot(aes(x = DATE, y = COUNTRY, alpha = TOTAL_DEATHS, size = EQ_PRIMARY))+
geom_timeline()+
geom_timeline_lable(aes(label = LOCATION_NAME),n_max = 3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.