draw_mst | R Documentation |
This function will draw the MST for a scatterplot.
draw_mst(x, y, alpha = 0.5, out.rm = TRUE)
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 |
A "gg" object that draws the plot's MST.
require(dplyr) require(ggplot2) data("features") nl <- features %>% filter(feature == "nonlinear2") draw_mst(nl$x, nl$y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.