plot.regcoeffs: Regression coefficients plot

Description Usage Arguments

View source: R/regcoeffs.R

Description

Shows plot with regression coefficient values for every predictor variable (x)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## 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], ")"),
  ...
)

Arguments

x

regression coefficients object (class regcoeffs)

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)


mdatools documentation built on Sept. 13, 2021, 9:07 a.m.