type_glm | R Documentation |
Type function for plotting a generalized model fit.
Arguments are passed to glm
.
type_glm(family = "gaussian", se = TRUE, level = 0.95, type = "response")
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. |
# "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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.