Description Usage Arguments Details Value Examples
View source: R/geom_timeline.R
This function uses ggplot to visualize a timeline of earthquakes.
1 2 3 |
mapping |
defaults to NULL |
data |
defaults to NULL, unless data passed in |
stat |
defautls to 'identity' |
position |
defautls to 'identity' |
na.rm |
defaults to FALSE, do not remove NAs |
show.legend |
defaults to NA |
inherit.aes |
defaults to TRUE |
... |
takes additional arguments |
Create a new geom called geom_timeline that is used to plot a timline of earthquakes
Returns a ggplot object
1 2 3 4 5 6 7 8 | ## Not run: data %>%
ggplot() +
geom_timeline(aes(x = DATE,
y = COUNTRY,
fill = TOTAL_DEATHS,
size = EQ_PRIMARY))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.