tests/testthat/testCreateDataProfilePlot.R

context("test creating data for plotting profiles")

test_that("test profile plot data generation", {
    data("superTaxonProfile", package="PhyloProfile")

    plotDf <- dataMainPlot(superTaxonProfile)
    expect_true(nrow(plotDf) == 91)

    selectedTaxa <- c("Mammalia", "Saccharomycetes", "Insecta")
    selectedSeq <- "all"
    customizedPlotDf <- dataCustomizedPlot(
        superTaxonProfile, selectedTaxa, selectedSeq
    )
    expect_true(nrow(customizedPlotDf) == 11)
})

Try the PhyloProfile package in your browser

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

PhyloProfile documentation built on March 27, 2021, 6:01 p.m.