tests/testthat/test-scattermoreplot-basic.R

test_that("scattermoreplot does not fail on trivial data", {
  expect_silent(scattermoreplot(rnorm(10), rnorm(10)))

  expect_silent(scattermoreplot(rnorm(10), rnorm(10), col = "red"))

  expect_silent(scattermoreplot(rnorm(10), rnorm(10), col = rainbow(10), xlim = c(-3, 3), ylim = c(-3, 3)))
})

Try the scattermore package in your browser

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

scattermore documentation built on July 9, 2023, 5:34 p.m.