draw_mst: Drawing the MST

View source: R/draw.R

draw_mstR Documentation

Drawing the MST

Description

This function will draw the MST for a scatterplot.

Usage

draw_mst(x, y, alpha = 0.5, out.rm = TRUE)

Arguments

x

numeric vector

y

numeric vector

alpha

The alpha value used to build the graph object. Larger values allow points further apart to be connected.

out.rm

option to return the outlier removed MST

Value

A "gg" object that draws the plot's MST.

Examples

require(dplyr)
require(ggplot2)
data("features")
nl <- features %>% filter(feature == "nonlinear2")
draw_mst(nl$x, nl$y)

cassowaryr documentation built on Aug. 9, 2022, 5:08 p.m.