Description Usage Arguments Aesthetics Examples
View source: R/geom_timeline_label.R
Adds labels for the locations of individual earthquaks
1 2 3 |
mapping |
look at Arguments section in |
data |
look at Arguments section in |
stat |
look at Arguments section in |
position |
look at Arguments section in |
na.rm |
look at Arguments section in |
show.legend |
look at Arguments section in |
inherit.aes |
look at Arguments section in |
... |
look at Arguments section in |
x
: the DATE
of the earthquake .
label
: a character column which represents the location of individual earthquaks . .
color
: a numeric column which represents the number of deaths per country .
fill
: it may be the number of deaths per country too .
size
: the magnitude of the earthquake measured on the Richter scale
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
eq_data <- noaa %>%
eq_clean_data() %>%
eq_location_clean() %>%
filter(YEAR >= 2000, COUNTRY == "USA") %>%
ggplot(aes(x = DATE, size = as.numeric(EQ_PRIMARY),
color = as.numeric(TOTAL_DEATHS), label = LOCATION)) +
geom_timeline() +
geom_timeline_label()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.