poplin_boxplot: Box plot

Description Usage Arguments Value Examples

View source: R/plot-boxplot.R

Description

Produce a box-and-whisker plot of the feature intensity values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Default S3 method:
poplin_boxplot(
  x,
  group,
  pre_log2 = FALSE,
  violin = FALSE,
  ylab = "Intensity",
  ...
)

## S3 method for class 'poplin'
poplin_boxplot(
  x,
  xin,
  group,
  pre_log2 = FALSE,
  violin = FALSE,
  ylab = "Intensity",
  ...
)

Arguments

x

A matrix or poplin object.

group

A discrete variable to visualize the grouping structure.

pre_log2

Logical controlling whether feature intensities are log2-transformed before visualization.

violin

Logical controlling whether a violin plot is drawn instead of the boxplot.

ylab

The title of y-axis of the plot.

...

Reserved for future use.

xin

Character specifying the name of data to retrieve from x when x is a poplin object

Value

A ggplot object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(faahko_poplin)

## sample group variable
group <- colData(faahko_poplin)$sample_group

## poplin object
poplin_boxplot(faahko_poplin, xin = "knn_cyclic", group = group)

## matrix
m <- poplin_data(faahko_poplin, "knn_cyclic")
poplin_boxplot(m, group = group)

jaehyunjoo/poplin documentation built on Jan. 8, 2022, 1:13 a.m.