Description Usage Arguments Value See Also
View source: R/rich_loadings.R
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
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")
)
|
top_feature |
A data frame containing |
top_feature_combined |
A data frame containing |
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; |
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);
HotLoadings.combine_abundances
to create combined condition abundances data frame and HotLoadings.plot_loadings
for plot in a single step.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.