Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

geom_residuals

Plotting Residual of a Model


Description

geom_residuals makes a diagnostic plot of residuals versus fitted data for linear models. Does not yet accept logistic models

Usage

geom_residuals(model)

Arguments

model

Model to be analyzed, currently only accepts linear models.

Details

Generate residuals versus fitted plot. Functions as an additional geom layer on ggplot. Models must be linear/gaussian in nature. Covariates can be included in the model.

Value

Returns a ggplot object of geom type, other layers can be added on as seen in example.


card

Cardiovascular and Autonomic Research Design

v0.1.0
MIT + file LICENSE
Authors
Anish S. Shah [aut, cre, cph] (<https://orcid.org/0000-0002-9729-1558>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.