tests/testthat/test-LDA_plot.R

test_that("plot", {
  data(LDAdata)
  cell.line <- unique(LDAdata$name)[1]
  x <- subset.data.frame(LDAdata, subset = (name==cell.line))
  x <- x[,c(4,5,6,3,2,1)]
  act <- LDA_activity(x[,1:4])
  expect_error(LDA_plot(act))
  LDA_plot(x)
  LDA_plot(x,uncertainty = "act")
  x <- subset.data.frame(LDAdata, subset = (name==cell.line) & (Group==0))
  x <- x[,c(4,5,6,3,2,1)]
  act <- LDA_activity_single(x[,1:3])
  LDA_plot(x)
  LDA_plot(x[,1:3])
  expect_error(LDA_plot(LDA_tab = x[,1:4],uncertainty = 'Taylor'))
  LDA_plot(x,uncertainty.band = T)
})

Try the LDAcoop package in your browser

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

LDAcoop documentation built on Sept. 12, 2024, 7:43 a.m.