theme_msdr: theme_msdr

Description Usage Value Examples

View source: R/theme_msdr.R

Description

I used this theme to change the overall visuals of the ggplot2 to became more likely to the examples.

Usage

1

Value

Remove the gray background, the grid, the panel border, etc. Turns the plot clean.

Examples

 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)

nandinigntr/MSDR documentation built on Jan. 1, 2021, 11:32 a.m.