Description Usage Arguments Examples
This geom adds a vertical line to each data point with a text annotation (e.g. the location of the earthquake) attached to each line with option to subset to n_max number of earthquakes, where we take the n_max largest (by magnitude) earthquakes. Aesthetics are x, which is the date of the earthquake and label which takes the column name from which annotations will be obtained.
1 2 3 |
data |
The data to be displayed in this layer. There are three options: If A A |
mapping |
Set of aesthetic mappings created by |
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 |
xmin |
Minimum X Axis limit, Start date year |
xmax |
Maximum X Axis limit, End date year |
n_max |
Number of Label to plot |
... |
other arguments passed on to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
ggplot(
data = merged_date_data,
aes(
x = DATE,
y = COUNTRY,
colour = merged_date_data$TOTAL_DEATHS,
size = merged_date_data$EQ_PRIMARY,
date = merged_date_data$DATE,
countries = merged_date_data$COUNTRY,
location_name = merged_date_data$LOCATION_NAME
)
) +
geom_timeLine(xmin = START_DATE,
xmax = END_DATE) +
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.