Description Usage Arguments Details Examples
plot Timeline with labels
1 2 3 |
mapping |
mapping |
data |
data used to plot |
stat |
calculation that used to transform the data |
position |
relative position of the geoms |
na.rm |
NA remove |
show.legend |
whether show legend |
inherit.aes |
aes that inherit |
... |
other params to pass in |
x A date data that used to draw the timeline loc location of the earthquake, used in the labels n_max show how many largest earthquake you want show y denote each country size same as in ggplot2, used to show magnitude of earth quake
1 2 3 4 5 | ## Not run:
ggplot(plot_dat, aes(x = DATE,y = COUNTRY)) +
geom_timelinelabel(aes(fill = DEATHS, size = EQ_MAG_MS, loc = LOCATION_NAME_, n_max = 3))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.