Description Usage Value Examples
This is not necessary but prepared for complete functionality. It refers to geom_timelabel() and StatTimelabel class for plotting purpose. As it refers geom_timelable(), it means the function can be used 'independent' of geom_timeline().
1 2 3 |
layer object for plotting purpose
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
ggplot(data = selected) +
aes(x=DATE, y=COUNTRY,
colour = TOTAL_DEATHS,
size = EQ_PRIMARY,
label=LOCATION_NAME, byCol=EQ_PRIMARY,
xmin = xmin1, xmax = xmax1) +
geom_timeline() +
stat_timelabel(n_max=5)+
theme_timeline() +
scale_size_continuous(name = "Richter scale value") + #change legend name
scale_colour_continuous(name = "# Deaths")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.