Compute striated scagnostic measure using MST
sc_striated(x, y)
# S3 method for default
sc_striated(x, y)
# S3 method for scree
sc_striated(x, y = NULL)
# S3 method for igraph
sc_striated(x, y)
numeric vector of x values
numeric vector of y values
A "numeric" object that gives the plot's striated score.
require(ggplot2)
require(dplyr)
data(anscombe_tidy)
ggplot(anscombe_tidy, aes(x=x, y=y)) +
geom_point() +
facet_wrap(~set, ncol=2, scales = "free")
sc_striated(anscombe$x1, anscombe$y1)
#> [1] 0
sc_striated(anscombe$x2, anscombe$y2)
#> [1] 0.8181818