plot_module_distribution: Plot a distribution from a model

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Plot a distribution from a model

Usage

1
2
3
4
5
6
7
8
9
plot_module_distribution(
  compendium = "vespucci",
  module = NULL,
  normalization = "legacy",
  type = "json",
  plot = TRUE,
  plotType = "biological_features_uncentered_correlation_distribution",
  getRank = FALSE
)

Arguments

compendium

A string - the selected compendium

module

A matrix with valid rownames (biofeatureNames) and colnames (samplesetsNames)

normalization

A string - either 'limma','tpm' or legacy as normalization

type

A string - either 'html' or 'json

plot

A logical - it return the graphics object

plotType

A string - see get_available_plot_methods

getRank

A logical - if TRUE return the ranking

Value

Either a json, an html, a plotly htmlwidget or a data.frame with the ranking

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
gene_names <- c('VIT_00s0246g00220','VIT_00s0332g00060','VIT_00s0332g00110',
'VIT_00s0332g00160','VIT_00s0396g00010','VIT_00s0505g00030','VIT_00s0505g00060',
'VIT_00s0873g00020','VIT_00s0904g00010')
module_1 <- create_module(biofeaturesNames=gene_names, normalization = "legacy")
plot_module_distribution(module = module_1,
plotType = "biological_features_uncentered_correlation_distribution", plot = TRUE)
plot_module_distribution(module = module_1,
plotType = "sample_sets_magnitude_distribution", plot = TRUE)
plot_module_distribution(module = module_1,
plotType = "sample_sets_coexpression_distribution", plot = TRUE)

## End(Not run)

onertipaday/rcompass documentation built on Sept. 18, 2021, 5:13 p.m.