intensity_plot: intensity_plot

View source: R/intensity_plot.R

intensity_plotR Documentation

intensity_plot

Description

Get intensity distributation plot for one specific feature.

Usage

intensity_plot(
  object,
  variable_id,
  variable_index,
  color_by,
  order_by,
  desc = FALSE,
  interactive = TRUE
)

Arguments

object

(required) A mass_dataset object.

variable_id

Variable id.

variable_index

Variable index. You need to provide this or variable_id.

color_by

which column (in variable_info) is used to color variables

order_by

which column (in variable_info) is used to order variables

desc

Descend the order? TRUE or FALSE.

interactive

Interactive plot or not. TRUE or FALSE.

Value

A ggplot2 class object.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

data("expression_data")
data("sample_info")
data("sample_info_note")
data("variable_info")
data("variable_info_note")
object =
  create_mass_dataset(
    expression_data = expression_data,
    sample_info = sample_info,
    variable_info = variable_info,
    sample_info_note = sample_info_note,
    variable_info_note = variable_info_note
  )
object

intensity_plot(object = object, variable_index = 1)
intensity_plot(object = object, variable_index = 1, color_by = "class")

tidymass/massdataset documentation built on Oct. 17, 2022, 7:25 a.m.