tests/testthat/test-plot2d.R

test_that("plot2d works", {
  grDevices::pdf(NULL)
  expect_is(plot2d(origTrack = niclas), c("gg", "ggplot"))
  expect_is(plot2d(origTrack = niclas, simTrack = niclas, DEM = dem, titleText = "Test"), c("gg", "ggplot"))
  expect_is(plot2d(origTrack = niclas, simTrack = niclas, BG = dem, titleText = "Test"), c("gg", "ggplot"))
})

Try the eRTG3D package in your browser

Any scripts or data that you put into this service are public.

eRTG3D documentation built on March 18, 2022, 6:11 p.m.