linear_class-plot_fit function

plot_fit

plot_fit

plot_fit plots fitted model against the data. Use this function to explore the quality of your fit. You can plot on the subject level (subjects=TRUE) or on the group level (subjects=FALSE).

## S4 method for signature 'linear_class' plot_fit(object, ...)

Arguments

  • object: linear_class object.
  • ...: subjects - plot fits on a subject level (default = TRUE).

Returns

A ggplot visualization.

Examples

# to use the function you first have to prepare the data and fit the model # see class documentation for an example of the whole process # along with an example of how to use this function ?linear_class
  • Maintainer: Jure Demšar
  • License: GPL (>= 3)
  • Last published: 2023-09-29