Skip to contents

Correlate two items

Usage

plot_metrics_one_cor(
  data,
  col,
  cross,
  limits = NULL,
  log = FALSE,
  title = TRUE,
  labels = TRUE,
  clean = TRUE,
  ...
)

Arguments

data

A tibble.

col

The first column holding metric values.

cross

The second column holding metric values.

limits

The scale limits, a list with x and y components, e.g. list(x=c(0,100), y=c(20,100)). Set NULL to extract limits from the labels.

log

Whether to plot log scales.

title

If TRUE (default) shows a plot title derived from the column labels. Disable the title with FALSE or provide a custom title as character value.

labels

If TRUE (default) extracts labels from the attributes, see codebook.

clean

Prepare data by data_clean.

...

Placeholder to allow calling the method with unused parameters from plot_metrics.

Value

A ggplot object.

Examples

library(volker)
data <- volker::chatgpt

plot_metrics_one_cor(data, use_private, sd_age)