plot_metrics_one_cor {volker} | R Documentation |
Correlate two items
Description
Correlate two items
Usage
plot_metrics_one_cor(
data,
col,
cross,
negative = FALSE,
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. |
negative |
If FALSE (default), negative values are recoded as missing values. |
limits |
The scale limits, a list with x and y components, e.g. |
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)
[Package volker version 2.0.1 Index]