type_glm {tinyplot} | R Documentation |
Generalized linear model plot type
Description
Type function for plotting a generalized model fit.
Arguments are passed to glm
.
Usage
type_glm(family = "gaussian", se = TRUE, level = 0.95, type = "response")
Arguments
family |
a description of the error distribution and link
function to be used in the model. For |
se |
logical. If TRUE, confidence intervals are drawn. |
level |
the confidence level required. |
type |
character, partial matching allowed. Type of weights to extract from the fitted model object. Can be abbreviated. |
Examples
# "glm" type convenience string
tinyplot(am ~ mpg, data = mtcars, type = "glm")
# Use `type_glm()` to pass extra arguments for customization
tinyplot(am ~ mpg, data = mtcars, type = type_glm(family = "binomial"))
[Package tinyplot version 0.4.2 Index]