ggplot_optics | R Documentation |
Plot OPTICS reachability plot.
ggplot_optics(
optics_obj,
groups = NULL,
colors = if (!is.null(groups)) nice_palette(groups),
segment_size = 300/nrow(df_optics)
)
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 |
ggplot
opticskxi
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.