Skip to contents

Plot toroidal topography

Usage

plot_toroidal_topography(
  theta,
  phi,
  conditional = FALSE,
  ...,
  palette = topography_palette(),
  base_size = 12,
  legend_position = "right",
  show_legend = TRUE
)

Arguments

theta

First angle in radians.

phi

Second angle in radians.

conditional

If TRUE, rows are normalized to estimate f(phi | theta).

...

Additional arguments passed to estimate_toroidal_density().

palette

Colour palette for density.

base_size

Base font size.

legend_position

Legend position.

show_legend

If FALSE, hide legends.

Value

A ggplot object.

See also

Examples

dat <- simulate_toroidal(n = 80, seed = 1)
plot_toroidal_topography(dat$theta, dat$phi, n_theta = 24, n_phi = 24)