visualize_both: Visualize the PPS & correlation matrices

Description Usage Arguments Value Examples

View source: R/visualize.R

Description

Visualize the PPS & correlation matrices

Usage

1
2
3
4
5
6
7
8
9
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

1
2
3
visualize_both(iris)

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

ppsr documentation built on March 2, 2021, 5:06 p.m.