Learn R Programming

conversim (version 0.1.0)

plot_sim_time: Plot similarity over time for multiple dyads

Description

This function creates a ggplot object showing the similarity over time for multiple dyads.

Usage

plot_sim_time(similarities, title, y_label)

Value

A ggplot object

Arguments

similarities

A list of similarity sequences for each dyad

title

A string specifying the plot title

y_label

A string specifying the y-axis label

Examples

Run this code
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