View source: R/conversation_multidyads_utilities.R
plot_sim_cor_heatmap | R Documentation |
This function creates a ggplot object showing a heatmap of correlations between similarity measures.
plot_sim_cor_heatmap(cor_matrix, title)
cor_matrix |
A correlation matrix output from calc_sim_cor() |
title |
A string specifying the plot title |
A ggplot object
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")
)
cor_matrix <- calc_sim_cor(comparison_df)
plot_sim_cor_heatmap(cor_matrix, "Correlation of Similarity Measures")
print(plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.