visualize_both | R Documentation |
Visualize the PPS & correlation matrices
visualize_both(
df,
color_value_positive = "#08306B",
color_value_negative = "#8b0000",
color_text = "#FFFFFF",
include_missings = TRUE,
nrow = 1,
...
)
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 |
a grob object, a grid with two ggplot2 heatmap visualizations
visualize_both(iris)
visualize_both(mtcars, do_parallel = TRUE, n_cores = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.