Description Usage Arguments Aesthetics Examples
View source: R/geom_timeline.R
shows a timeline of NOAA Significant earthquakes for an individual country in the y axis and dates in x axis and the size of the points is associated with the earthquakes magnitude and the color is represented the total number of deaths
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 column in the NOAA dataframe .
size
: a numeric column which represents Richter scale value .
color
: a numeric column which represents the number of deaths per country .
fill
: it may be the number of deaths per country too .
y
: it is column that represents COUNTRY
name .
alpha
shape
1 2 3 4 5 6 7 8 | ## Not run:
noaa %>%
eq_clean_data() %>%
filter(YEAR >= 2000, COUNTRY == "USA") %>%
ggplot(aes(x = DATE, size = as.numeric(EQ_PRIMARY), color = as.numeric(TOTAL_DEATHS))) +
geom_timeline()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.