"plot"(x, y, subset = NULL, threshold = 0.01, minimum_dof = 1, maximum_dof = Inf, must_express = NULL, row_annotation, palette = colorRampPalette(brewer.pal(10, "Purples"))(20), show_rownames = FALSE, show_colnames = FALSE, measure = NULL, order_by = FunctionalityScore, ...)
COMPASSResult
.row_annotation
, if
row_annotation
is missing. It can be used to group rows (individuals)
by different conditions as defined in the metadata.threshold
are
removed.must_express=c("TNFa & IFNg")
says we include only subsets that are positive for both
TNFa
or IFNg
, while must_express=c("TNFa", "IFNg")
says we should keep subsets which are positive for either TNFa
or
IFNg
.TRUE
we display row names (ie,
the individual ids).TRUE
we display column names
(ie, the column name associated with a cytokine; typically not needed)Posterior*
functions -- see Posterior
for
examples.FunctionalityScore
, mean
, median
, and so on.
Set this to NULL
to preserve the original ordering of the data.pheatmap
.grid
object (grob
). It can be redrawn
with e.g. grid::grid.draw()
.
## visualize the mean probability of reponse
plot(CR)
## visualize the proportion of cells belonging to a category
plot(CR, measure=PosteriorPs(CR))
Run the code above in your browser using DataLab