tests/testthat/test_contourPlot2.R

test_that("contourPlot2 is a ggplot2 object", {
    data("volcano")
    volcano <- as.data.frame(volcano)
    volcano3d <- reshape(
        volcano,
        direction = "long",
        varying = list(1:61),
        idvar = "x",
        timevar = "y",
        v.names = "z"
    )
    v <- contourPlot2(volcano3d)
    expect_s3_class(v, "ggplot")
})

Try the simulariatools package in your browser

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

simulariatools documentation built on Jan. 8, 2026, 1:06 a.m.