tests/testthat/test_exppcp.R

context("Parallel Co-ordinate plots")

test_that("test input object", {
  expect_error(ExpParcoord(mtcars, Stsize = 20,
                           Nvar = c("mpg", "disp", "wt", "gear")))
})

test_that("test output object", {
  plotlst <- ExpParcoord(mtcars, Nvar = c("mpg", "disp", "wt", "gear"))
  expect_is(plotlst, "ggplot")
})

Try the SmartEDA package in your browser

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

SmartEDA documentation built on Dec. 4, 2022, 1:15 a.m.