ggplot_optics {opticskxi}R 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))

[Package opticskxi version 0.1 Index]