tests/testthat/test-TTTplot.R

test_that("plot.empiricalTTT", {

  set.seed(123)
  y <- rweibull(n=1000, shape=2, scale=pi)
  TTT_3 <- TTTE_Analytical(y ~ 1, scaled = FALSE)
  empTTT <- function() plot(TTT_3, type = "s", grid = TRUE,
                            col = 3, lwd = 3)
  # testthat::skip()
  vdiffr::expect_doppelganger("TTT-plot", empTTT)
})

Try the EstimationTools package in your browser

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

EstimationTools documentation built on Dec. 10, 2022, 9:07 a.m.