sc_convex: Compute convex scagnostic measure

View source: R/alphahull.R

sc_convexR Documentation

Compute convex scagnostic measure

Description

Compute convex scagnostic measure

Usage

sc_convex(x, y)

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

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

## S3 method for class 'list'
sc_convex(x, y)

Arguments

x

numeric vector of x values

y

numeric vector of y values

Value

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

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