Learn R Programming

GGMncv (version 1.0.0)

plot.ggmncv: Plot ggmncv Objects

Description

Plot variable inclusion 'probabilities'

Usage

# S3 method for ggmncv
plot(x, size = 1, color = "black", ...)

Arguments

x

An object of class ggmncv

size

Numeric. The size of the points (defaults to 1).

color

Character string. The color of the points (defaults to black)

...

Currently ignored.

Value

A ggplot object

Examples

Run this code
# NOT RUN {
# data
Y <- GGMncv::ptsd[,1:10]

# correlations
S <- cor(Y, method = "spearman")

# fit model
fit <- GGMncv(x = S, n = nrow(Y),
              penalty = "atan",
              vip = TRUE,
              vip_iter = 50)

# plot
plot(fit, size = 4)

# }

Run the code above in your browser using DataLab