View source: R/utility_functions.R
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.
1 | ggplot.cosinor.lm(object, x_str = NULL, endtime)
|
object |
An object of class |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.