-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'colors' Parameter to
pathway_heatmap
and pathway_pca
Functions
This update introduces a significant enhancement to the `pathway_heatmap` and `pathway_pca` functions by adding a new `colors` parameter. This parameter allows users to customize the color schemes of their heatmaps and PCA plots, providing a more tailored and visually appealing representation of their data. #### Key Changes: 1. **`pathway_heatmap` Function:** - Added `colors` parameter to allow custom color choices for facet label backgrounds. - The parameter influences the background of the facet strips generated by `ggh4x::facet_nested`. - Default color set is used if `colors` is not specified or NULL. 2. **`pathway_pca` Function:** - Introduced `colors` parameter to customize the color scheme of PCA scatter and density plots. - Ensured compatibility with existing color mechanisms and added error checks for color vector length. - Default color palette applied if `colors` is NULL. #### Enhanced Examples: - Updated examples to demonstrate the use of the new `colors` parameter in both functions. - Provided examples with both default and custom color sets for real and simulated datasets. This update aims to provide users with greater control over the aesthetics of their plots, thereby enhancing the interpretability and presentation quality of their data analyses.
- Loading branch information
1 parent
e32e9b7
commit d5c5042
Showing
4 changed files
with
87 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.