Skip to contents

Plot multiple similarity measures for a single dyad

Usage

plot_sim_multi(similarities, titles)

Arguments

similarities

A list of similarity measures for a single dyad

titles

A character vector of titles for each similarity measure

Value

A ggplot object

Details

This function creates a faceted plot of multiple similarity measures for a single dyad.

Examples

sim1 <- list(sequence = c(0.5, 0.6, 0.7, 0.6, 0.8), average = 0.64)
sim2 <- list(sequence = c(0.4, 0.5, 0.6, 0.7, 0.7), average = 0.58)
similarities <- list(sim1, sim2)
titles <- c("Measure 1", "Measure 2")

# Plot multiple similarity measures
plot <- plot_sim_multi(similarities, titles)
print(plot)