Description Usage Arguments Examples
Plot a time line of earthquakes ranging from xmin to xmaxdates with a point for each earthquake. Optional aesthetics include color, size, and alpha (for transparency). The xaesthetic is a date and an optional y aesthetic is a factor indicating some stratification in which case multiple time lines will be plotted for each level of the factor (e.g. country).
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 |
... |
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.