top_pairs | R Documentation |
Calculate the top scagnostic for each pair of variables
top_pairs(scags_data)
scags_data |
A dataset of scagnostic values that was returned by calc_scags or calc_scags_wide |
A data frame where each row is a each scatter plot, its highest valued scagnostic, and its respective value
calc_scags calc_scags_wide top_scags
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.