Learn R Programming

cassowaryr (version 2.0.2)

sc_clumpy2: Compute adjusted clumpy measure using MST

Description

Compute adjusted clumpy measure using MST

Usage

sc_clumpy2(x, y)

# S3 method for default sc_clumpy2(x, y)

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

# S3 method for igraph sc_clumpy2(x, y)

Value

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

Arguments

x

numeric vector of x values

y

numeric vector of y values

Examples

Run this code
  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_clumpy2(x,y))
  sc_clumpy2(datasaurus_dozen_wide$away_x, datasaurus_dozen_wide$away_y)

Run the code above in your browser using DataLab