plot: Plot precision matrix

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plot precision matrix

Usage

1
2
3
4
plot(x, plt, col, ...)

## S3 method for class 'gslope'
plot(x, plt = "scaled_precision", col = "black", ...)

Arguments

x

an object of class ''gslope''

plt

a plot type. Accepts either 'precision', 'covariance', 'corr' or 'scaled_precision'. Default 'precision'.

col

a character, color name. Default "black"

...

Other parameters

Value

Prints output on the screen

Examples

1
2
3
4
w = gslope(as.matrix(mtcars))
plot(w, col = "green", plt = "precision")
plot(w, plt = "corr")
plot(w,  col = "purple", plt = "scaled_precision")

StatsIMUWr/gslope documentation built on Oct. 8, 2020, 1:25 a.m.