Visualize the distribution of discrete features.

plotDistributionDiscrete(
  object,
  of_sample = "",
  features,
  feature_compare = NULL,
  clrp = "milo",
  position = "fill",
  ...
)

Arguments

object

A valid spata-object.

of_sample

The sample(s) of interest specified as a single character value or vector. If set to "" (the default) the first sample is chosen.

features

The features of interest specified as a character vector.

feature_compare

Character vector or NULL. The discrete feature you want to compare the features of features to.

clrp

clrp params

position

Character value. Given to position of ggplot2::geom_bar(). One of 'stack', 'dodge' or 'fill'.

...

Additional parameters given to ggplot2::facet_wrap().