powered by
This function creates a correlation heatmap for all discrete categories.
CorrelationDiscrete(data, maxcat = 20, ...)
input data to be plotted, in either data.frame or data.table format.
maximum categories allowed for each feature. The default is 20.
other arguments to be passed to cor.
The function first transposes all discrete categories into columns with binary outcomes, then calculates the correlation matrix (see cor) and plots it.
# NOT RUN { # correlation of discrete categories from diamonds dataset library(ggplot2) data(diamonds) CorrelationDiscrete(diamonds) # }
Run the code above in your browser using DataLab