plot.regcoeffs | R Documentation |
Shows plot with regression coefficient values for every predictor variable (x)
## S3 method for class 'regcoeffs'
plot(
x,
ncomp = 1,
ny = 1,
type = (if (x$nvar > 30) "l" else "h"),
col = c(mdaplot.getColors(1), "lightgray"),
show.lines = c(NA, 0),
show.ci = FALSE,
alpha = 0.05,
ylab = paste0("Coefficients (", x$respnames[ny], ")"),
...
)
x |
regression coefficients object (class |
ncomp |
number of components to use for creating the plot |
ny |
index of response variable to make the plot for |
type |
type of the plot |
col |
vector with two colors for the plot (one is used to show real coefficient and another one to show confidence intervals) |
show.lines |
allows to show horizontal line at c(NA, 0) |
show.ci |
logical, show or not confidence intervals if they are available |
alpha |
significance level for confidence intervals (a number between 0 and 1, e.g. for 95% alpha = 0.05) |
ylab |
label for y-axis |
... |
other arguments for plotting methods (e.g. main, xlab, etc) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.