Plot otuput of the overlap_df function as a heatmap.
Usage
corr_heatmap(
rec,
steps = steps_ids(rec, "da"),
font_size = 15,
type = "all",
target = NULL,
contrast_id = NULL
)Arguments
- rec
A prepped
Recipeobject.- steps
Character vector with step_ids to take in account.
- font_size
Size of the axis font.
- type
Indicates whether to use all taxa ("all") or only those that are differentially abundant in at least one method ("da"). Default as "all".
- target
Optional modeled target to include.
- contrast_id
Optional modeled contrast identifier to include.
Examples
data(test_prep_rec)
## Correlation heatmap of discoveries shared between methods
if (requireNamespace("heatmaply", quietly = TRUE)) {
corr_heatmap(test_prep_rec)
}
#> Registered S3 method overwritten by 'dendextend':
#> method from
#> rev.hclust vegan
#> Registered S3 method overwritten by 'seriation':
#> method from
#> reorder.hclust vegan
#> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
#> ℹ Please use `linewidth` instead.
#> ℹ The deprecated feature was likely used in the dendextend package.
#> Please report the issue at <https://github.com/talgalili/dendextend/issues>.
