tests/testthat/test_PlotCatVar.R

library(otvPlots)
library(proto)
context("Plot categorical variable")
load("../testthat/testData.rda")
setDT(testData)

test_that("PlotCatVar returns a gtable", {
	PrepData(testData, dateNm = "date", dateGp = "weeks", dateGpBp = "months")
	p <- PlotCatVar("marital", testData, NULL, "weeks", "months")$p	
	expect_is(p, "gtable")
})
capitalone/otvPlots documentation built on March 15, 2024, 8:25 a.m.