tests/testthat/test-plot.chi.R

context("plot.chi")

test_that("plot.chi behaves as it should", {
  skip_on_cran()
  skip_on_travis()
  chi <- chi(wavesurge)
  par(mfrow=c(1,2),pty="m")
  res <- plot(chi,mainChiBar="Figure 8.11 of Coles (2001)\nChi Bar")
  plot(chi, show=c("Chi"=FALSE,"ChiBar"=TRUE))
  plot(chi, show=c("Chi"=TRUE,"ChiBar"=FALSE))
  expect_that(res, equals(NULL), label="plot.chi:checksuccessfulexecution")
}
)

Try the texmex package in your browser

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

texmex documentation built on Dec. 4, 2020, 5:08 p.m.