sc_striated2: Compute angle adjusted striated measure using MST

View source: R/adjusted.R

sc_striated2R Documentation

Compute angle adjusted striated measure using MST

Description

Compute angle adjusted striated measure using MST

Usage

sc_striated2(x, y)

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

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

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

Arguments

x

numeric vector of x values, or an MST object

y

numeric vector of y values, or a scree object

Value

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


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