sc_clumpy: Compute clumpy scagnostic measure using MST

View source: R/mst.R

sc_clumpyR Documentation

Compute clumpy scagnostic measure using MST

Description

Compute clumpy scagnostic measure using MST

Usage

sc_clumpy(x, y)

## Default S3 method:
sc_clumpy(x, y)

## S3 method for class 'scree'
sc_clumpy(x, y = NULL)

## S3 method for class 'igraph'
sc_clumpy(x, y)

Arguments

x

numeric vector of x values

y

numeric vector of y values

Value

A "numeric" object that gives the plot's clumpy score.

Examples

  require(ggplot2)
  require(dplyr)
  ggplot(features, aes(x=x, y=y)) +
     geom_point() +
     facet_wrap(~feature, ncol = 5, scales = "free")
  features %>% group_by(feature) %>% summarise(clumpy = sc_clumpy(x,y))
  sc_clumpy(datasaurus_dozen_wide$away_x, datasaurus_dozen_wide$away_y)


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