Learn R Programming

eulerr (version 8.1.0)

euler_plot_data: Compute polygon geometry and label anchors for plotting a fitted Euler diagram, including the optional complement region inside a fitted container.

Description

Inputs are the fitted shape parameters for the non-empty sets only, in the order eulerr stores them (x$shapes rows after dropping rows with NA). The leading shape argument selects which per-set columns are active: "circle"/"ellipse" consume (h, k, a, b, phi), "rectangle" consumes (h, k, width, height), "square" consumes (h, k, side). The remaining vectors must still be provided (NaN padding is acceptable). When container_* are non-NULL they describe the fitted universe-box rectangle; in that case the result also carries the complement region geometry (the area inside the rectangle outside every shape) and a label anchor for it. Eunoia's decompose_regions emits this region under the empty Combination whenever the spec carries a complement and a container is supplied.

Usage

euler_plot_data(
  set_names,
  shape,
  h,
  k,
  a,
  b,
  phi,
  width,
  height,
  side,
  container_h,
  container_k,
  container_width,
  container_height,
  n_vertices,
  label_precision
)

Arguments