geom_timeline_label: Funcion for adding the Eartquakes's Location labels to an...

Description Usage Arguments Value Examples

Description

Funcion for adding the Eartquakes's Location labels to an Earthquake's timeline

Usage

1
2
3
geom_timeline_label(mapping = NULL, data = NULL, na.rm = TRUE,
  show.legend = NA, stat = "identity", position = "identity",
  inherit.aes = TRUE, ...)

Arguments

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

Value

the Earthquake's labels

Examples

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)

arielaragon/Mastering_Software_Dev_R_Master documentation built on May 18, 2019, 9:16 p.m.