Description Usage Arguments Value Examples
Funcion for adding the Eartquakes's Location labels to an Earthquake's timeline
1 2 3 |
mapping |
aesthetic mappings created by aes |
data |
is the dataframe that contains the Earthquake's data |
na.rm |
will hepls to remove the NA values from the data frame |
show.legend |
layer's legend |
stat |
The Layer's statistical transformation |
position |
position adjustment functio |
inherit.aes |
will indicate the default aesthetics overridng |
... |
layer's other arguments |
the Earthquake's labels
1 2 3 4 5 6 7 8 9 | ## Not run:
filename<-system.file("data","earthquakes_data.txt.zip",package="capstone")
eq_location_clean(eq_clean_data(eq_data_read(filename))) %>%
dplyr::filter(datetime >= "1980-01-01" & datetime <="2014-01-01" & COUNTRY == c("MEXICO","USA", "JORDAN"))%>%
ggplot() +
geom_timeline(aes(x = datetime, y = COUNTRY, size = EQ_MAG_ML, colour = DEATHS, fill = DEATHS)) +
geom_timeline_label(aes(x = datetime, y = COUNTRY, label = LOCATION_NAME, number = 3, max_aes = EQ_MAG_ML))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.