Learn R Programming

quickReg (version 1.0.0)

plot.reg: plot the result of univariate regression result

Description

plot coefficients, OR or HR of univariate regressions.

Usage

"plot"(x, limits = c(NA, NA), sort = "order", ...)

Arguments

x
A reg object
limits
A numeric vector of length two providing limits of the scale. Use NA to refer to the existing minimum or maximum value.
sort
A character determining the order of variables to plot,'alphabetical' or 'order'. The later is the default to sort varibales according to their effect size.
...
additional arguments

See Also

reg, dataframe.reg, detail.reg

Examples

Run this code
reg_glm<-reg(data = diabetes, y = 5, factor = c(1, 3, 4), model = 'glm')
plot(reg_glm)
plot(reg_glm, limits = c(NA, 3))

Run the code above in your browser using DataLab