sc_sparse {cassowaryr}R Documentation

Compute sparse scagnostic measure using MST

Description

Compute sparse scagnostic measure using MST

Usage

sc_sparse(x, y)

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

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

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

Arguments

x

numeric vector of x values

y

numeric vector of y values

Value

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

Examples

  require(ggplot2)
  require(tidyr)
  require(dplyr)
  ggplot(datasaurus_dozen, aes(x=x, y=y)) +
    geom_point() +
    facet_wrap(~dataset, ncol=3, scales = "free")
  sc_sparse(datasaurus_dozen_wide$away_x, datasaurus_dozen_wide$away_y)
  sc_sparse(datasaurus_dozen_wide$circle_x, datasaurus_dozen_wide$circle_y)
  sc_sparse(datasaurus_dozen_wide$dino_x, datasaurus_dozen_wide$dino_y)


[Package cassowaryr version 2.0.0 Index]