top_pairs {cassowaryr} | R 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)
[Package cassowaryr version 2.0.0 Index]