top_pairs: Calculate the top scagnostic for each pair of variables

View source: R/calculate.R

top_pairsR Documentation

Calculate the top scagnostic for each pair of variables

Description

Calculate the top scagnostic for each pair of variables

Usage

top_pairs(scags_data)

Arguments

scags_data

A dataset of scagnostic values that was returned by calc_scags or calc_scags_wide

Value

A data frame where each row is a each scatter plot, its highest valued scagnostic, and its respective value

See Also

calc_scags calc_scags_wide top_scags

Examples

#an example using calc_scags
require(dplyr)
datasaurus_dozen %>%
  group_by(dataset) %>%
  summarise(calc_scags(x,y, scags=c("monotonic", "outlying", "convex"))) %>%
  top_pairs()
 #an example using calc_scags_wide
 data(pk)
 scags_data <- calc_scags_wide(pk[,2:5], scags=c("outlying","clumpy","monotonic"))
 top_pairs(scags_data)

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