display_HDoutliers {stray} | R Documentation |
Display outliers with a scatterplot
Description
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.
Usage
display_HDoutliers(data, out)
Arguments
data |
A vector, matrix, or data frame consisting of numerical variables. |
out |
A list containing output values produced by |
Value
A ggplot object of data space with detected outliers (if any).
Examples
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)
[Package stray version 0.1.1 Index]