HotLoadings.plot_loadings_long: Plot Loadings the long way

Description Usage Arguments Value See Also

View source: R/rich_loadings.R

Description

The user need to previously launch HotLoadings.names, HotLoadings.top_features, HotLoadings.mean_relative_abundances and HotLoadings.combine_abundances in order to make this function works. Otherwise use HotLoadings.plot_loadings

Usage

1
2
3
4
5
6
HotLoadings.plot_loadings_long(
  top_feature,
  top_feature_combined,
  xlim = c(-0.3, 0.3),
  colors = c("orange", "red", "blue", "dark green")
)

Arguments

top_feature

A data frame containing n_top features generated by HotLoadings.top_features.

top_feature_combined

A data frame containing n_top features informations and proportion between Y_name categories. Generated by HotLoadings.combine_abundances.

xlim

Vector of size 2 containings plot limits for x axis of the graphic (default is -0.3, 0.3).

colors

Vector of size 4 containings colors for each class of the graphic. As negative and positive values of the loading has a precise meaning, color order is important. If "Condition 1" is positively associated to specified component (positive loading) and "Condition 2" viceversa: Color1 represents the proportion of negative loading features in "Condition 1" samples; Color2 represents the proportion of negative loading features in "Condition 2" samples; Color3 represents the proportion of positive loading features in "Condition 1" samples; Color4 represents the proportion of positive loading features in "Condition 2" samples;

Value

The function plots loadings with several informations: * n_top associated feature with component; * Relative abundances for each feature in every condition (white numbers); * The proportion between relative abundances for each feature in every condition (length of different colors inside each bar);

See Also

HotLoadings.combine_abundances to create combined condition abundances data frame and HotLoadings.plot_loadings for plot in a single step.


mcalgaro93/HotLoadings documentation built on June 13, 2021, 10:01 p.m.