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")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.