plot_features {autonomics}R Documentation

Plot features

Description

Plot features

Usage

plot_features(
  object,
  geom,
  subgroup,
  x = !!enquo(subgroup),
  fill = !!enquo(subgroup),
  color = !!enquo(subgroup),
  ...,
  fixed = list(na.rm = TRUE),
  theme = list(axis.text.x = element_blank(), axis.title.x = element_blank(),
    axis.ticks.x = element_blank())
)

plot_feature_profiles(...)

Arguments

object

SummarizedExperiment

geom

geom_point, geom_boxplot, etc.

subgroup

subgroup svar

x

svar mapped to x

fill

svar mapped to fill

color

svar mapped to color

...

mapped aesthetics

fixed

fixed aesthetics

theme

ggplot theme specifications

Value

ggplot object

Examples

require(magrittr)
file <- download_data('halama18.metabolon.xlsx')
object <- read_metabolon(file, pca=TRUE, plot = FALSE)
idx <- order(abs(fdata(object)$pca1), decreasing=TRUE)[1:9]
object %<>% extract(idx, )
plot_feature_boxplots(object)
plot_subgroup_boxplots(object, subgroup=Group)
plot_feature_profiles( object, subgroup=Group)

[Package autonomics version 1.1.7 Index]