Learn R Programming

ffaframework (version 0.1.1)

plot_spearman_test: Plot Spearman’s Rho Autocorrelation

Description

Visualizes Spearman’s rho serial correlation coefficients with shaded points indicating statistical significance.

Usage

plot_spearman_test(results, ...)

Value

ggplot; a plot showing:

  • Vertical segments from \(y=0\) up to each \(\rho\) value at its lag.

  • Filled circles at each lag, filled black if serial correlation is detected.

Arguments

results

A list generated by eda_spearman_test().

...

Optional named arguments: 'title', 'xlabel', and 'ylabel'.

Examples

Run this code
data <- rnorm(n = 100, mean = 100, sd = 10)
results <- eda_spearman_test(data)
plot_spearman_test(results)

Run the code above in your browser using DataLab