sc_outlying | R Documentation |
Compute outlying scagnostic measure using MST
sc_outlying(x, y) ## Default S3 method: sc_outlying(x, y) ## S3 method for class 'scree' sc_outlying(x, y = NULL) ## S3 method for class 'igraph' sc_outlying(x, y)
x |
numeric vector of x values |
y |
numeric vector of y values |
A "numeric" object that gives the plot's outlying score.
require(ggplot2) require(tidyr) require(dplyr) ggplot(datasaurus_dozen, aes(x=x, y=y)) + geom_point() + facet_wrap(~dataset, ncol=3, scales = "free") sc_outlying(datasaurus_dozen_wide$dino_x, datasaurus_dozen_wide$dino_y) sc_outlying(datasaurus_dozen_wide$dots_x, datasaurus_dozen_wide$dots_y) sc_outlying(datasaurus_dozen_wide$h_lines_x, datasaurus_dozen_wide$h_lines_y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.