shinyCOMPASS | R Documentation |
This function takes a COMPASSResult
object, and generates
a local Shiny application for visualizing the results.
shinyCOMPASS(
x,
dir = NULL,
meta.vars,
facet1 = "None",
facet2 = "None",
facet3 = "None",
main = "Heatmap of Ag-Specificity Posterior Probabilities",
stimulation = NULL,
launch = TRUE,
...
)
x |
An object of class |
dir |
A location to write out the |
meta.vars |
A character vector of column names that should be used for potential facetting in the Shiny app. By default, we take all metadata variables; you may want to limit this if you know certain variables are not of interest. |
facet1 , facet2 , facet3 |
Default values for facets in the Shiny app. Each should be the name of a single vector in the metadata. |
main |
A title to give to the heatmap and subset histogram plots. |
stimulation |
The name of the stimulation applied. If this is |
launch |
Boolean; if |
... |
Optional arguments passed to |
shinyCOMPASSDeps
, for identifying packages that you
need in order to run the Shiny application.
if (interactive()) {
oldOpt <- getOption("example.ask")
options(example.ask=FALSE)
on.exit( options(example.ask=oldOpt) )
shinyCOMPASS(CR)
options(example.ask=TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.