Compute stringy scagnostic measure using MST

sc_stringy(x, y)

# S3 method for scree
sc_stringy(x, y = NULL)

# S3 method for default
sc_stringy(x, y)

# S3 method for igraph
sc_stringy(mst)

Examples

  require(ggplot2)
  require(tidyr)
  require(dplyr)
  data(anscombe_tidy)
  ggplot(anscombe_tidy, aes(x=x, y=y)) +
    geom_point() +
    facet_wrap(~set, ncol=2, scales = "free")

  sc_stringy(anscombe$x1, anscombe$y1)
#> [1] 0.7142857
  sc_stringy(anscombe$x2, anscombe$y2)
#> [1] 1
  sc_stringy(anscombe$x3, anscombe$y3)
#> [1] 1
  sc_stringy(anscombe$x4, anscombe$y4)
#> Warning: success: collinearities reduced through jitter
#> Warning: dataset started with 3 colinear points, jitter added!
#> [1] 1