powered by
Draw a heatmap of correlation test
ggCor(data, label = 0, colors = NULL, title = FALSE, interactive = FALSE, ...)
A data.frame
if 0, no label(default), if 1, use r value as label, if 2, use r value with significant mark as label
colors for low, mid and high correlation values
if true, add title to the heatmap
A logical value. If TRUE, an interactive plot will be returned
further arguments to be passed to cor.test
# NOT RUN { require(mycor) require(ggplot2) require(ggiraph) ggCor(iris) ggCor(iris,label=2,interactive=TRUE) ggCor(mtcars,interactive=TRUE) ggCor(iris,method="pearson",interactive=TRUE) # }
Run the code above in your browser using DataLab