plot_cpop | R Documentation |
Plot cpop coefficients
plot_cpop(cpop_result, type = "point", s = "lambda.min")
cpop_result |
The output of cpop_model |
type |
One of "point", "bar", "text" and "ggraph" |
s |
lasso s |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.