Learn R Programming

radiant (version 0.1.95)

plot.glm_reg: Plot method for the glm_reg function

Description

Plot method for the glm_reg function

Usage

"plot"(x, glm_plots = "", glm_conf_level = 0.95, glm_coef_int = FALSE, shiny = FALSE, ...)

Arguments

x
Return value from glm_reg
glm_plots
Plots to produce for the specified GLM model. Use "" to avoid showing any plots (default). "hist" shows histograms of all variables in the model. "scatter" shows scatter plots (or box plots for factors) for the dependent variable with each independent variable. "dashboard" is a series of four plots used to visually evaluate model. "coef" provides a coefficient plot
glm_conf_level
Confidence level to use for coefficient and odds confidence intervals (.95 is the default)
glm_coef_int
Include the intercept in the coefficient plot (TRUE or FALSE). FALSE is the default
shiny
Did the function call originate inside a shiny app
...
further arguments passed to or from other methods

Details

See http://vnijs.github.io/radiant/quant/glm_reg.html for an example in Radiant

See Also

glm_reg to generate results

plot.glm_reg to plot results

predict.glm_reg to generate predictions

plot.glm_predict to plot prediction output

Examples

Run this code
result <- glm_reg("titanic", "survived", c("pclass","sex"), glm_levels = "Yes")
plot(result, glm_plots = "coef")

Run the code above in your browser using DataLab