Description Usage Arguments Details Examples
Creates a timeline chart specific for a NOAA dataframe (see eq_clean_data
for more details)
1 2 3 |
mapping |
Set of aesthetic mappings created by |
data |
a dataframe containing NOAA details |
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 |
... |
other arguments passed on to |
plotting 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 x aesthetic 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 4 5 6 7 8 | ## Not run:
data %>%
filter(COUNTRY %in% c("USA", "CHINA")) %>%
eq_clean_data()%>%
ggplot(aes(x = DATE, y = COUNTRY, alpha = TOTAL_DEATHS, size = EQ_PRIMARY))+
geom_timeline(xmindate = "2008/01/01", xmaxdate = "2015/12/31")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.