ggellipse: Graphical Assessment of Amplitude and Acrophase

Description Usage Arguments Value Examples

View source: R/cosinor-constructor.R

Description

This is a ggplot-styled graphical representation of the ellipse region generated by the cosinor analysis. It requires the same data used by cosinor model to be fit with the model card::cosinor. This includes the amplitude, acrophase,

Usage

1
ggellipse(object, level = 0.95, ...)

Arguments

object

Requires a cosinor model to extract the correct statistics to generate the plot.

level

Confidence level for ellipse

...

Additional parameters may be needed for extensibility

Value

Object of class ggplot to help identify confidence intervals

Examples

1
2
3
data("twins")
m <- cosinor(rDYX ~ hour, twins, tau = 24)
ggellipse(m)

Example output



card documentation built on Sept. 3, 2020, 9:07 a.m.