plot_cpop: Plot cpop coefficients

View source: R/plot_cpop.R

plot_cpopR Documentation

Plot cpop coefficients

Description

Plot cpop coefficients

Usage

plot_cpop(cpop_result, type = "point", s = "lambda.min")

Arguments

cpop_result

The output of cpop_model

type

One of "point", "bar", "text" and "ggraph"

s

lasso s

Examples

data(cpop_data_binary, package = 'CPOP')
## Loading simulated matrices and vectors
x1 = cpop_data_binary$x1
x2 = cpop_data_binary$x2
y1 = cpop_data_binary$y1
y2 = cpop_data_binary$y2
set.seed(1)
cpop_result = cpop_model(x1 = x1, x2 = x2, y1 = y1, y2 = y2, alpha = 1, n_features = 10)
plot_cpop(cpop_result, type = "point")
plot_cpop(cpop_result, type = "text")
plot_cpop(cpop_result, type = "bar")
plot_cpop(cpop_result, type = "ggraph")

kevinwang09/top documentation built on April 20, 2022, 3:01 a.m.