Plot Correlation Heatmap for a Single Dyad
plot_cor_heatmap(cor_matrix, titles)
A ggplot object
A correlation matrix for a single dyad
A character vector of titles for each similarity measure
This function creates a heatmap of correlations between similarity measures for a single dyad.
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)
Run the code above in your browser using DataLab