Description Usage Arguments Value Examples
View source: R/display_HDoutliers.R
Provide a 2D scatterplot of data for visual exploration. For data with more than two dimensions, two dimensional scatterplot is produced using the first two pricipal components.
1 | display_HDoutliers(data, out)
|
data |
A vector, matrix, or data frame consisting of numerical variables. |
out |
A list containing output values produced by |
A ggplot object of data space with detected outliers (if any).
1 2 3 4 5 6 7 8 9 10 11 12 13 | data <- c(rnorm(100), 7, 7.5, rnorm(100, 20), 45)
output <- find_HDoutliers(data, knnsearchtype = "kd_tree")
display_HDoutliers(data, out = output)
data <- rbind(matrix(rnorm(96), ncol = 2), c(10,12),c(3,7))
output <- find_HDoutliers(data, knnsearchtype = "brute")
display_HDoutliers(data, out = output)
data <- rbind(matrix(rnorm(144), ncol = 3), c(10,12,10),c(3,7,10))
output <- find_HDoutliers(data, knnsearchtype = "brute")
display_HDoutliers(data, out = output)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.