Learn R Programming

loose.rock (version 1.2.0)

draw.cov.matrix: Plot covariance heatmap from matrix

Description

Plot covariance heatmap from matrix

Usage

draw.cov.matrix(my.matrix, fun = stats::cov, ...)

Arguments

my.matrix

matrix to calculate the covariance

fun

function to use

...

arguments to pass to fun function

Value

a ggplot2

Examples

Run this code
# NOT RUN {
draw.cov.matrix(matrix(rnorm(100), ncol = 10))
draw.cov.matrix(gen.synth.xdata(10, 10, .2))
# }

Run the code above in your browser using DataLab