powered by
Plot similarity sequence for a single dyad
plot_sim_seq(similarity, title)
A ggplot object
A list containing the sequence of similarities and the average similarity
A character string for the plot title
This function creates a line plot of the similarity sequence for a single dyad.
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