Description Usage Arguments Examples
Display regression coefficients
1 | fdPanelCoefficients(mod, digits = 3, barColor = "steelblue", ...)
|
mod |
model object |
digits |
number of digits to display |
barColor |
bar color |
... |
additional arguments passed to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | library(flightdeck)
#' Example 1: Linear Regression Model
data(diamonds, package = 'ggplot2')
panel1 <- lm(price ~ ., data = diamonds) %>%
fdPanelCoefficients %>%
fdPreview
if (interactive()) {
panel1
}
#' Example 2: GlmNet Model
library(glmnet)
data(QuickStartExample)
panel2 <- glmnet(x, y) %>%
fdPanelCoefficients(s = 0.3) %>%
fdPreview
if (interactive()){
panel2
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.