Skip to contents

Add a statistical orbit line

Usage

stat_statistical_orbit(
  mapping = NULL,
  data = NULL,
  geom = "line",
  position = "identity",
  n_theta = 181,
  kappa = 20,
  ...,
  show.legend = NA,
  inherit.aes = TRUE
)

Arguments

mapping, data, geom, position, show.legend, inherit.aes

Standard ggplot2 layer arguments.

n_theta

Number of angular grid points.

kappa

Circular concentration for local weighting.

...

Additional arguments passed to the geom.

Value

A ggplot2 layer.

See also

Examples

dat <- simulate_cylindrical(n = 80, seed = 1)
ggplot2::ggplot(dat, ggplot2::aes(x = theta, y = x)) +
  stat_statistical_orbit(n_theta = 24)