Description Usage Arguments Value Examples
geom_timeline function
1 2 3 |
mapping |
The aesthetics that the geom accepts |
data |
The input dataset |
stat |
The statistical transformation function that must be used |
position |
The position of the transformation data |
na.rm |
A logical scalar. Should missing values (including NaN) be removed? |
show.legend |
Display the legend or not (TRUE or FALSE) |
inherit.aes |
Inherit aesthetics from main ggplot call |
... |
Numeric, complex, or logical vectors. |
This function returns a plot where earthquakes are plotted per country and where the size is the magnitude and the colour is the number of deaths
1 2 3 4 5 6 7 8 | ## Not run:
readr::read_delim("earthquakes.tsv.gz",delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "USA" & lubridate::year(DATE) >= 2000) %>%
ggplot() +
geom_timeline(aes(x = DATE, y = COUNTRY,size = EQ_PRIMARY, colour = DEATHS))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.