Skip to contents

This function creates a ggplot object comparing multiple similarity measures for the same set of dyads.

Usage

plot_sim_comp(comparison_df, title)

Arguments

comparison_df

A data frame output from compare_sim_meas()

title

A string specifying the plot title

Value

A ggplot object

Examples

topic_similarities <- list("1" = c(0.5, 0.6, 0.7), "2" = c(0.4, 0.5, 0.6))
lexical_similarities <- list("1" = c(0.6, 0.7, 0.8), "2" = c(0.5, 0.6, 0.7))
comparison_df <- compare_sim_meas(
  list(topic_similarities, lexical_similarities),
  c("Topic", "Lexical")
)
plot_sim_comp(comparison_df, "Comparison of Similarity Measures")