ggplot_optics: Ggplot optics

View source: R/optics_plots.R

ggplot_opticsR Documentation

Ggplot optics

Description

Plot OPTICS reachability plot.

Usage

ggplot_optics(
  optics_obj,
  groups = NULL,
  colors = if (!is.null(groups)) nice_palette(groups),
  segment_size = 300/nrow(df_optics)
)

Arguments

optics_obj

dbscan::optics object

groups

Optional vector defining groups of OPTICS observations

colors

If groups specified, vector of colors for each group

segment_size

Size for geom_segment

Value

ggplot

See Also

opticskxi

Examples

data('multishapes')
optics_obj <- dbscan::optics(multishapes[1:2])
ggplot_optics(optics_obj)
ggplot_optics(optics_obj,
  groups = opticskxi(optics_obj, n_xi = 5, pts = 30))

ThomasChln/opticskxi documentation built on April 12, 2025, 5:43 a.m.