geom_timeline: geom_timeline

Description Usage Arguments Aesthetics Examples

View source: R/geom_timeline.R

Description

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

Usage

1
2
3
geom_timeline(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
## 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)

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