Description Usage Arguments Examples
Geom to annotate earthquake graph
1 2 3 |
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. |
... |
other arguments passed on to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
1 2 3 4 5 6 7 8 9 | require(ggplot2)
ggplot(eq_china_cleandata, aes( x = DATE, y = as.factor(COUNTRY))) +
geom_timeline( x_min = "1800-01-01", x_max = "2015-01-01") +
geom_timelinelabel(ggplot2::aes_(magnitude = quote(EQ_PRIMARY),
label = quote(LOCATION_NAME),
col = NULL),
x_min = "1800-01-01",
x_max = "2015-01-01",
n_max = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.