geom_timeline_label: geom_timeline_label

Description Usage Arguments Aesthetics Examples

View source: R/geom_timeline_label.R

Description

Adds labels for the locations of individual earthquaks

Usage

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

Arguments

mapping

look at Arguments section in ggplot2::geom_point()

data

look at Arguments section in ggplot2::geom_point()

stat

look at Arguments section in ggplot2::geom_point()

position

look at Arguments section in ggplot2::geom_point()

na.rm

look at Arguments section in ggplot2::geom_point()

show.legend

look at Arguments section in ggplot2::geom_point()

inherit.aes

look at Arguments section in ggplot2::geom_point()

...

look at Arguments section in ggplot2::geom_point()

Aesthetics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
eq_data <- noaa %>%
 eq_clean_data() %>%
 eq_location_clean() %>%
 filter(YEAR >= 2000, COUNTRY == "USA") %>%
 ggplot(aes(x = DATE, size = as.numeric(EQ_PRIMARY),
 color = as.numeric(TOTAL_DEATHS), label = LOCATION)) +
 geom_timeline() +
 geom_timeline_label()

## End(Not run)

MagdyLaban/Mastering_Software_Development_in_R_Capstone_Coursera documentation built on Oct. 30, 2019, 9:08 p.m.