ggplot.cosinor.lm: Plot a cosinor model

Description Usage Arguments

View source: R/utility_functions.R

Description

Adapted from the Cosinor package by Michael Sachs. 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. Unlike the original version, the function will plot for the full timecourse rather just one full period.

Usage

1
ggplot.cosinor.lm(object, x_str = NULL, endtime)

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

endtime

The last time value for the time course


nathansam/CircadianTools documentation built on Dec. 26, 2019, 11:30 a.m.