View source: R/plot.cosinor.lm.R
ggplot.cosinor.lm | R Documentation |
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.
## S3 method for class 'cosinor.lm' ggplot(object, x_str = NULL)
object |
An object of class |
x_str |
Character vector naming the covariate(s) to be plotted. May be NULL to plot overall curve |
fit <- cosinor.lm(Y ~ time(time) + X + amp.acro(X), data = vitamind) ggplot.cosinor.lm(fit, "X")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.