Learn R Programming

tidyinftheo (version 0.2.1)

mutual_info_heatmap: Plot heatmap of mutual infos

Description

Given a matrix produced from mutual_info_matrix(), plot a heatmap with ggplot2

Usage

mutual_info_heatmap(mi_matrix, title = NULL, font_sizes = c(12, 12))

Arguments

mi_matrix

a table produced from mutual_info_matrix

title

title of plot

font_sizes

A length-2 vector of x-axis and y-axis variable font sizes

Value

a double with the calculated value

See Also

mutual_info_matrix

Examples

Run this code
# NOT RUN {
p <- mtcars %>%
   mutual_info_matrix(cyl, vs, am, gear, carb, normalized=TRUE) %>%
   mutual_info_heatmap()
p
# }

Run the code above in your browser using DataLab