powered by
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.
ggplot_cosinor.lm(object, x_str = NULL)
An object of class cosinor.lm
cosinor.lm
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")
Run the code above in your browser using DataLab