Description Usage Value Examples
I used this theme to change the overall visuals of the ggplot2 to became more likely to the examples.
1 |
Remove the gray background, the grid, the panel border, etc. Turns the plot clean.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## 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)) +
theme_msdr()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.