corr_cvplot: Plot Corr-Val

Description Usage Arguments Value Examples

View source: R/plot_functions.R

Description

The function will plot a correlation with an annotation of the cross-validated pearson coefficient.

Usage

1
corr_cvplot(x, y, xlab = NULL, ylab = NULL)

Arguments

x

A single vector.

y

A single vector.

Value

A plot of the correlation between x and y, with the cross-validated correlation coefficient annotated within the graph.

Examples

1
2
3
x <- rnorm(n = 25, mean = 0, sd = 1)
y <- rnorm(n = 25, mean = 25, sd = 5)
corr_cv(x, y)

lfrank14/lurr documentation built on May 21, 2019, 12:20 p.m.