countPlotServer | R Documentation |
countPlotServer()
creates a count plot for a given gene from the counts and
sample information supplied. The plot is a ggplot2 plot object made using
biovisr::scatterplot_with_fill_and_shape()
. The plot is rendered to the
count_plot plotOutput from the countPlotOutput()
function.
countPlotServer(
id,
counts = NULL,
sample_info = NULL,
gene_metadata = NULL,
debug = NULL
)
id |
namespace id for the UI components. Must match the id provided to the
|
counts |
a reactive counts object. Should contain only numeric columns |
sample_info |
a reactive object. Represents the samples and associated metadata |
gene_metadata |
a reactive object. Contains the metadata for the genes present in the counts object. |
debug |
Turn on debugging message statements |
a shiny::reactive()
object which is the count plot
countPlotServer("rnaseq", counts = reactive(rnaseqVis::counts[1:10, 1:20]),
sample_info = reactive(rnaseqVis::sampleInfo[1:20,]),
gene_metadata = reactive(rnaseqVis::gene_metadata[1:10,]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.