Learn R Programming

conversim (version 0.1.0)

plot_sim_seq: Plot Similarity Sequence

Description

Plot similarity sequence for a single dyad

Usage

plot_sim_seq(similarity, title)

Value

A ggplot object

Arguments

similarity

A list containing the sequence of similarities and the average similarity

title

A character string for the plot title

Details

This function creates a line plot of the similarity sequence for a single dyad.

Examples

Run this code
sim_list <- list(
  sequence = c(0.5, 0.6, 0.7, 0.6, 0.8),
  average = 0.64
)

# Plot the similarity sequence
plot <- plot_sim_seq(sim_list, "Dyad Similarity Sequence")
print(plot)

Run the code above in your browser using DataLab