plotFeatureScatter {clusterExperiment}R Documentation

Plot scatter plot of feature values colored by cluster

Description

Plot a scatter plot of the (transformed) values for a set of gene expression values, colored by cluster

Usage

## S4 method for signature 'ClusterExperiment,character'
plotFeatureScatter(object, features,
  ...)

## S4 method for signature 'ClusterExperiment,numeric'
plotFeatureScatter(object, features,
  whichCluster, plotUnassigned = TRUE, unassignedColor = "grey",
  missingColor = "white", whichAssay = 1, legendLocation = NA,
  jitterFactor = NA, ...)

Arguments

object

a ClusterExperiment object

features

the indices of the features (either numeric or character matching rownames of object) to be plotted.

...

arguments passed to boxplot

whichCluster

which clusters to show on the plot

plotUnassigned

whether to plot the unassigned samples as a cluster (either -1 or -2)

unassignedColor

If not NULL, should be character value giving the color for unassigned (-2) samples (overrides clusterLegend) default.

missingColor

If not NULL, should be character value giving the color for missing (-2) samples (overrides clusterLegend) default.

whichAssay

numeric or character specifying which assay to use. See assay for details.

legendLocation

character value passed to location argument of plotClusterLegend indicating where to put the legend. If NA, legend will not be plotted.

jitterFactor

numeric. If NA, no jittering is done. Otherwise, passed to factor of function jitter (useful for low counts)


[Package clusterExperiment version 2.3.0 Index]