profile_barplot: Stacked barplot of sample feature profiles

View source: R/plot-barplot.r

profile_barplotR Documentation

Stacked barplot of sample feature profiles

Description

The top.n argument consolidates all features not among the top.n into a single feature that is named "Other". The order of features within the ExpressionSet object is used to determine whether features are among the top.n. The reorder_features() function can be used to change this order with respect to the rank of their aggregated values. By default all features are visualized. However, for cases where there are many features with relatively values, utilizing the top.n arugment can speed up plot rendering without sacrificing visual information.

Usage

profile_barplot(data, palette, legend = FALSE, top.n = NULL,
  order.features = FALSE, other.color = "grey50", width = 0.9)

Arguments

data

ExpressionSet object.

palette

a function that generates n colors.

legend

include a legend?

top.n

Number of features to visualize and color as unique entities.

order.features

Arrange features in ascending order within each sample.

other.color

Color applied to features not among the top.n.

width

Bar width. By default, set to 90% of the resolution of the data.

Examples

profile_barplot(profiles)


aaronwolen/metafiler documentation built on Feb. 16, 2024, 12:41 a.m.