sc_stringy: Compute stringy scagnostic measure using MST

View source: R/mst.R

sc_stringyR Documentation

Compute stringy scagnostic measure using MST

Description

Compute stringy scagnostic measure using MST

Usage

sc_stringy(x, y)

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

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

## S3 method for class 'igraph'
sc_stringy(x, y = NULL)

sc_stringy2(x, y)

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

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

## S3 method for class 'igraph'
sc_stringy2(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 stringy 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_stringy(anscombe$x1, anscombe$y1)
  sc_stringy(anscombe$x2, anscombe$y2)
  sc_stringy(anscombe$x3, anscombe$y3)
  sc_stringy(anscombe$x4, anscombe$y4)


numbats/cassowaryr documentation built on April 17, 2025, 10:36 p.m.