ggplot.cosinor.lmer: Plot a cosinor model

View source: R/ggplot.cosinor.lmer.R

ggplot.cosinor.lmerR Documentation

Plot a cosinor model

Description

Given a lmer model fit, generate a plot of the data with the fitted values.

Usage

## S3 method for class 'cosinor.lmer'
ggplot(
  object = NULL,
  x_str = NULL,
  period = NULL,
  db.means = NULL,
  DATA = NULL
)

Arguments

object

a lmer fit object (lmerMod object)

x_str

a character vector naming the covariate(s) to be plotted

period

the length of time for a cycle.

db.means

the data frame with mean values for MESOR, amplitude, and acrophase, for each comparison group

DATA

a data frame containing the variables named in lmer object

Examples

ggplot.cosinor.lmer(object=f1.a,
                    x_str="T0toT14",
                    period=24,
                    db.means=db.means,
                    DATA=db.model)


maytesuarezfarinas/cosinoRmixedeffects documentation built on Oct. 30, 2024, 9:31 p.m.