Description Usage Arguments Value Examples
View source: R/Geom_Timeline.R
Function to visualize of the timeline of the Earthquakes
1 2 3 4 5 6 7 8 9 10 |
mapping |
Set of aesthetic mappings created by |
data |
A Dataframe |
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 |
specifies how default missing values are approached |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
... |
additional parameters |
A Plot of timeline of Earthquakes
1 2 3 4 5 6 7 8 9 | ## Not run:
data = system.file('extdata', 'earthquakesData.tsv', package ='masteringSoftwareDevelopmentinR') %>%
data = read_data(data) %>%
eq_clean_data() %>%
dplyr::filter(datetime >= "1980-01-01" & datetime <="2014-01-01" & COUNTRY == c("BRAZIL"))%>%
ggplot() +
geom_timeline(aes(x = datetime, size = EQ_MAG_ML, color = DEATHS, fill = DEATHS))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.