geom_timeline: GGplot function that creates a timeline graph of a group of...

Description Usage Arguments Format Value Examples

View source: R/ggplotExtensions.R

Description

GGplot function that creates a timeline graph of a group of earthquakes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
GeomTimeline

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

Arguments

mapping

ggplot aes parameter

data

input data - dataframe of NOAA earthquakes

stat

ggplot stat parameter

position

ggplot position parameter

na.rm

ggplot na.rm parameter

show.legend

ggplot show.legend parameter

inherit.aes

ggplot inherit.aes parameter

...

ggplot other parameters

Format

An object of class GeomTimeline (inherits from Geom, ggproto, gg) of length 5.

Value

Draws a GGplot graph

Examples

1
## Not run: ggplot(inputData) + geom_timeline(aes(x=Date, colour=Deaths, n_max=5, size=Mag))

larkinj/CapstoneOne documentation built on Dec. 21, 2021, 8:50 a.m.