Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

conversim (version 0.1.0)

plot_cor_heatmap: Plot Correlation Heatmap for a Single Dyad

Description

Plot Correlation Heatmap for a Single Dyad

Usage

plot_cor_heatmap(cor_matrix, titles)

Value

A ggplot object

Arguments

cor_matrix

A correlation matrix for a single dyad

titles

A character vector of titles for each similarity measure

Details

This function creates a heatmap of correlations between similarity measures for a single dyad.

Examples

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