Description Usage Arguments Format Examples
View source: R/geom-timeline.R
Create timeline of earthquakes
1 2 3 4 5 | geom_timeline(mapping = NULL, data = NULL, stat = "identity",
position = "identity", na.rm = FALSE, show.legend = NA,
inherit.aes = TRUE, ...)
GeomTimeline
|
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
... |
other arguments passed on to |
An object of class GeomTimeline
(inherits from Geom
, ggproto
) of length 5.
1 2 3 4 5 6 | ## Not run:
library(ggplot2)
ggplot(noaa_data, aes(x = DATE, size = EQ_PRIMARY, n_max = 5)) +
geom_timeline()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.