plot_spatial_outliers: Display spatial outliers in two dimensional A-mode component...

Description Usage Arguments Value Examples

View source: R/plot_spatial_outliers.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
plot_spatial_outliers(X, label_outlier = TRUE, nudge_y = 0.05)

Arguments

X

A-mode component data with ourlying measures produced by find_spatial_outlier

label_outlier

Whether to display labels of outlying observations. Default is set to TRUE.

nudge_y

Vertical adjustment to nudge labels by. Useful for offsetting text from points, particularly on discrete scales.

Value

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

Examples

1
2
3
4
5
6
7
library(rrcov3way)
data(Arno)
result <- find_spatial_outlier(
  data = Arno, tensor_decom = "Tucker3"
)
p <- plot_spatial_outliers(X = result$out_data)
print(p)

pridiltal/mask documentation built on Dec. 22, 2021, 9:51 a.m.