tests/testthat/test-plot-fgeo_habitat.R

context("autoplot-fgeo_habitat")

describe("outputs an object of class ggplot", {
  skip_if_not_installed("fgeo.x")
  skip_if_not_installed("fgeo.analyze")

  elev_list <- fgeo.x::elevation
  habitats <- fgeo.analyze::fgeo_habitat(elev_list, gridsize = 20, n = 4)
  p <- autoplot(habitats)

  it("does something I want it to do", {
    expect_is(p, "ggplot")
  })
})

Try the fgeo.plot package in your browser

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

fgeo.plot documentation built on Sept. 4, 2022, 1:06 a.m.