sc_sparse2: Compute adjusted sparse measure using the alpha hull

View source: R/adjusted.R

sc_sparse2R Documentation

Compute adjusted sparse measure using the alpha hull

Description

Compute adjusted sparse measure using the alpha hull

Usage

sc_sparse2(x, y)

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

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

## S3 method for class 'list'
sc_sparse2(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 sparse2 score.

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_sparse2(anscombe$x1, anscombe$y1)


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