View source: R/conversation_sequence_utilities.R
plot_cor_heatmap | R Documentation |
Plot Correlation Heatmap for a Single Dyad
plot_cor_heatmap(cor_matrix, titles)
cor_matrix |
A correlation matrix for a single dyad |
titles |
A character vector of titles for each similarity measure |
This function creates a heatmap of correlations between similarity measures for a single dyad.
A ggplot object
sim1 <- list(sequence = c(0.8, 0.7, 0.9), average = 0.8)
sim2 <- list(sequence = c(0.6, 0.8, 0.7), average = 0.7)
cor_matrix <- cor_sim_seq(list(sim1, sim2))
plot_cor_heatmap(cor_matrix, c("Topic", "Lexical"))
print(plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.