transcript_strip_plot: transcript_strip_plot

Description Usage Arguments Value Author(s)

View source: R/transcript_strip_plot.R

Description

Produces a a stripplot of a specific transcript given a count matrix. Ensure that the count matrix has the identifier as the row names

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
transcript_strip_plot(
  id,
  counts,
  factor_interest,
  title,
  enlarged = "auto",
  type = c("boxplot", "CI", "SE", "mean"),
  colors = NULL,
  legend = TRUE,
  y_lab = NULL
)

Arguments

id

Identifier as provided in the count matrix

counts

Matrix of counts with the identifiers as rownames

factor_interest

A vector based on which you want to stratify your plot

title

A title for the plot

enlarged

Do you want an enlarged plot on the right side (TRUE or FALSE). Defaults to "auto" whereby the standard deviation will be calculated of the sample. If the sd is smaller than 0.015 the enlarged plot will be generated for visibility purposes.

type

Choose the type of plot you want: "boxplot", "SE", "CI" or simply "mean". Defaults to "boxplot".

colors

A vector containing the the colors to be utilized for the plot with the contrast of interest as names (default: uses ggplot's default coloring scheme).

legend

Boolean depicting whether a legend should be included (default: TRUE)

y_lab

A specific name for the y labels (default: "Counts")

Value

A stripplot of a specific gene

Author(s)

Andrew Y.F. Li Yim


ND91/ndlib documentation built on Aug. 10, 2020, 11:59 a.m.