visualize_both: Visualize the PPS & correlation matrices

View source: R/visualize.R

visualize_bothR 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 color_value_high

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 score

Value

a grob object, a grid with two ggplot2 heatmap visualizations

Examples

visualize_both(iris)

visualize_both(mtcars, do_parallel = TRUE, n_cores = 2)

ppsr documentation built on June 22, 2024, 7:15 p.m.