Given a sample data table and a design formula, explore the resulting design matrix graphically in an interactive application.
ExploreModelMatrix(
sampleData = NULL,
designFormula = NULL,
addStopButton = TRUE
)(optional) A data.frame or DataFrame
with sample information. If set to NULL, the user can upload
the sample information from a tab-separated text file inside the app, or
choose among a collection of example designs provided in the app.
(optional) A formula. All components of
the terms must be present as columns in sampleData. If set to
NULL, the design formula can be specified after launching the app.
Logical scalar. If TRUE (default), will add a
button to stop the app (by calling shiny::stopApp).
A Shiny app object
app <- ExploreModelMatrix(
sampleData = data.frame(genotype = rep(c("A", "B"), each = 4),
treatment = rep(c("treated", "untreated"), 4)),
designFormula = ~genotype + treatment
)
#> The `name` provided ('') does not correspond to a known icon
#> The `name` provided ('hand-o-right') does not correspond to a known icon
#> The `name` provided ('question-circle fa-1g') does not correspond to a known icon
if (interactive()) shiny::runApp(app)