ggplot_optics: Ggplot optics

Description Usage Arguments Value See Also Examples

View source: R/optics_plots.R

Description

Plot OPTICS reachability plot.

Usage

1
2
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

1
2
3
4
5
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))

opticskxi documentation built on July 19, 2019, 1:02 a.m.