test_that("Test geom_timeline",
{
XMin <- lubridate::ymd('2000-01-01')
XMax <- lubridate::ymd('2020-01-01')
Plot <- readr::read_delim(system.file("extdata", "signif.txt", package = "TheCapstoneProject"), delim = '\t') %>%
eq_location_clean() %>%
ggplot2::ggplot() +
geom_timeline(aes(x = DATE, xmin = XMin, xmax = XMax, size = EQ_PRIMARY, color = TOTAL_DEATHS))
expect_is(Plot, class = c("gg", "ggplot"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.