visualize_both {ppsr} | R Documentation |
Visualize the PPS & correlation matrices
Description
Visualize the PPS & correlation matrices
Usage
visualize_both(
df,
color_value_positive = "#08306B",
color_value_negative = "#8b0000",
color_text = "#FFFFFF",
include_missings = TRUE,
nrow = 1,
...
)
Arguments
df |
data.frame containing columns for x and y |
color_value_positive |
color used for upper limit of gradient (high positive correlation) |
color_value_negative |
color used for lower limit of gradient (high negative correlation) |
color_text |
string, hex value or color name used for text, best to pick high contrast with |
include_missings |
bool, whether to include the variables without correlation values in the plot |
nrow |
numeric, number of rows, either 1 or 2 |
... |
any arguments passed to |
Value
a grob object, a grid with two ggplot2 heatmap visualizations
Examples
visualize_both(iris)
visualize_both(mtcars, do_parallel = TRUE, n_cores = 2)
[Package ppsr version 0.0.5 Index]