ggplot_cosinor.lm: Plot a cosinor model

View source: R/plot.cosinor.lm.R

ggplot_cosinor.lmR Documentation

Plot a cosinor model

Description

Given a cosinor.lm model fit, generate a plot of the data with the fitted values. Optionally allows for plotting by covariate levels 0 and 1.

Usage

ggplot_cosinor.lm(object, x_str = NULL)

Arguments

object

An object of class cosinor.lm

x_str

Character vector naming the covariate(s) to be plotted. May be NULL to plot overall curve

Examples


fit <- cosinor.lm(Y ~ time(time) + X + amp.acro(X), data = vitamind)
ggplot_cosinor.lm(fit, "X")


cosinor documentation built on March 31, 2023, 11:39 p.m.