View source: R/plot_selection.R
plot_selection | R Documentation |
This function produces a histogram of the variable selection percentage for each variable on which f
depends. It also displays the results obtained with the AIC.
plot_selection(object)
object |
output obtained with |
This function produces a ggplot2::ggplot()
plot to visualize the variables selected with absorber()
.
# --- Loading values of x --- #
data('x_obs')
# --- Loading values of the corresponding y --- #
data('y_obs')
x_trunc = x_obs[1:70,,drop=FALSE]
y_trunc = y_obs[1:70]
# --- Variable selection of f1 --- #
res = absorber(x=x_trunc, y=y_trunc, M = 3)
plot_selection(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.