tests/testthat/test_pyramid.plot.R

library(nipnTK)
context("Tests for pyramid.plot")

svy <- dp.ex02
pyplot <- pyramid.plot(svy$age, svy$sex)

test_that("pyplot is table", {
  expect_is(pyplot, "table")
})

pyplot <- pyramid.plot(svy$age, svy$sex, col = c("red", "blue"))

test_that("pyplot is table", {
  expect_is(pyplot, "table")
})
ernestguevarra/nipnTK documentation built on April 13, 2024, 1:48 p.m.