Skip to contents

Convenience function for visualizing angles by observed or inferred states.

Usage

plot_state_angles(
  data,
  angle,
  state,
  type = c("rose", "density", "mean"),
  bins = 24,
  axial = FALSE
)

Arguments

data

A data frame.

angle

Angle column.

state

State or group column.

type

Plot type.

bins

Number of bins for rose diagrams.

axial

Should data be treated as axial, modulo pi?

Value

A ggplot object.