Description Usage Arguments Value Examples
This method acts behind de scenes creating a layer to plot the output of GeomTimeline function.
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 |
Creates a layer to plot the GeomTimeline output function. Updates the graphic inserting new content/visuals.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
## Full example of geom_timeline using eq_clean_data function to load the raw data and clean it.
# Loading and cleaning. Later subsetting the data.
df_earth <- eq_clean_data(file_name = 'inst/extdata/signif.txt') %>%
dplyr::filter(YEAR > 2010,
COUNTRY %in% c("CHINA","JAPAN")) %>%
dplyr::select(DATE,
COUNTRY,
EQ_PRIMARY,
TOTAL_DEATHS,
LOCATION) %>%
ggplot2::ggplot() +
geom_timeline(aes(x = DATE,
y = COUNTRY,
size = EQ_PRIMARY,
color = TOTAL_DEATHS))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.