sc_skinny: Compute skinny scagnostic measure

View source: R/alphahull.R

sc_skinnyR Documentation

Compute skinny scagnostic measure

Description

Compute skinny scagnostic measure

Usage

sc_skinny(x, y)

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

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

## S3 method for class 'list'
sc_skinny(x, y = NULL)

Arguments

x

numeric vector of x values

y

numeric vector of y values

Value

A "numeric" object that gives the plot's skinny 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(skinny = sc_skinny(x,y))
  sc_skinny(datasaurus_dozen_wide$away_x, datasaurus_dozen_wide$away_y)

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