display_HDoutliers: Display outliers with a scatterplot

Description Usage Arguments Value Examples

View source: R/display_HDoutliers.R

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

1

Arguments

data

A vector, matrix, or data frame consisting of numerical variables.

out

A list containing output values produced by find_HDoutliers

Value

A ggplot object of data space with detected outliers (if any).

Examples

 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)

stray documentation built on July 2, 2020, 4:03 a.m.