polar_plot.cglmm {GLMMcosinor} | R Documentation |
Generates a polar plot with elliptical confidence intervals
Description
Generates a polar plot with elliptical confidence intervals
Usage
## S3 method for class 'cglmm'
polar_plot(
x,
ci_level = 0.95,
n_breaks = 5,
component_index = NULL,
grid_angle_segments = 8,
radial_units = c("radians", "degrees", "period"),
clockwise = FALSE,
text_size = 3.5,
text_opacity = 1,
fill_colours,
ellipse_opacity = 0.3,
circle_linetype = "dotted",
start = c("right", "left", "top", "bottom"),
view = c("full", "zoom", "zoom_origin"),
overlay_parameter_info = FALSE,
quietly = TRUE,
show_component_labels = TRUE,
xlims,
ylims,
...
)
Arguments
x |
An object of class |
ci_level |
The level for calculated confidence ellipses. Defaults to 0.95. |
n_breaks |
The number of concentric circles that will be plotted using
the |
component_index |
A number that corresponds to a particular component
from the |
grid_angle_segments |
An |
radial_units |
A
|
clockwise |
A |
text_size |
A number controlling the font size of the text labels. Defaults to 3. |
text_opacity |
A |
fill_colours |
A |
ellipse_opacity |
A |
circle_linetype |
A |
start |
A |
view |
A
|
overlay_parameter_info |
A |
quietly |
Analogous to verbose, this |
show_component_labels |
Logical argument, TRUE by default. When TRUE, the polar plots have labels corresponding to their components. |
xlims |
A vector of length two containing the limits for the x-axis. |
ylims |
A vector of length two containing the limits for the y-axis. |
... |
Additional, ignored arguments. |
Value
Returns a ggplot
object.
Examples
model <- cglmm(
vit_d ~ X + amp_acro(time, group = "X", period = 12),
data = vitamind
)
polar_plot(model, radial_units = "period")