Like `image,CHMfactor-method`, but with better defaults for correlation matrices especially.

Image(X, dimnames = FALSE, title = NULL, include_zero = TRUE, ...)

Arguments

X

numeric matrix to plot.

dimnames

should row/colnames of matrix be added to the plot

title

Optional title

include_zero

should the z-value zero be included in the scale?

Value

ggplot object

Details

The default is to have the colors evenly spaced, instead of having the full range <0 and >0.