powered by
This function creates a ggplot object showing the similarity over time for multiple dyads.
plot_sim_time(similarities, title, y_label)
A ggplot object
A list of similarity sequences for each dyad
A string specifying the plot title
A string specifying the y-axis label
similarities <- list( "1" = c(0.5, 0.6, 0.7), "2" = c(0.4, 0.5, 0.6) ) plot_sim_time(similarities, "Topic Similarity", "Similarity Score") print(plot)
Run the code above in your browser using DataLab