plotly_scatter: Plotly Log2FC Scatter Plot

View source: R/plotly_log2FC.R

plotly_scatterR Documentation

Plotly Log2FC Scatter Plot

Description

This function returns a list with an interactive scatterplot based on log2 fold change data and a comprehensive Legend.

Usage

plotly_scatter(
  metalyzer_se,
  signif_colors = c(`#5F5F5F` = 1, `#FEBF6E` = 0.1, `#EE5C42` = 0.05, `#8B1A1A` = 0.01),
  class_colors = metalyzer_colors()
)

Arguments

metalyzer_se

A Metalyzer object

signif_colors

signif_colors

class_colors

A csv file containing class colors hexcodes

Value

plotly object

Examples


metalyzer_se <- MetAlyzer_dataset(file_path = example_mutation_data_xl())
metalyzer_se <- filterMetabolites(
  metalyzer_se,
  drop_metabolites = "Metabolism Indicators"
)
metalyzer_se <- renameMetaData(
  metalyzer_se,
  Mutant_Control = "Sample Description"
)
metalyzer_se <- calculate_log2FC(
  metalyzer_se,
  categorical = "Mutant_Control",
  impute_perc_of_min = 0.2,
  impute_NA = TRUE
)

p_scatter <- plotly_scatter(metalyzer_se)

MetAlyzer documentation built on April 3, 2025, 6:32 p.m.