test_that("output is a ggplot object", {
## Use example normalised proteins file
inputFile <- system.file("extData", "dataNormProts.txt", package = "ComPrAn")
forAnalysis <- protImportForAnalysis(inputFile)
protein <- "P52815"
max_frac <- 23
output <- proteinPlot(forAnalysis[forAnalysis$scenario == "B",], protein, max_frac)
expect_s3_class(output, "ggplot")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.