mutual_info_heatmap: Plot heatmap of mutual infos

Description Usage Arguments Value See Also Examples

View source: R/plotting.R

Description

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

Usage

1
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

1
2
3
4
p <- mtcars %>%
   mutual_info_matrix(cyl, vs, am, gear, carb, normalized=TRUE) %>%
   mutual_info_heatmap()
p

tidyinftheo documentation built on Dec. 1, 2017, 1:01 a.m.