Description Usage Arguments Examples
Visualization of a data instance using a set of barplots
1 | visualizeInstance(data, instanceIndex, bars = 10)
|
data |
data.frame with data describing all instances |
instanceIndex |
index of the instance to visualize |
bars |
max number of bars to plot, only top lowest and top highest frequencies will be presented |
1 2 3 4 5 6 7 8 | library("fpmoutliers")
dataFrame <- read.csv(
system.file("extdata", "fp-outlier-customer-data.csv", package = "fpmoutliers"))
model <- FPI(dataFrame, minSupport = 0.001)
# sort data by the anomaly score
dataFrame <- dataFrame[order(model$scores, decreasing = TRUE),]
visualizeInstance(dataFrame, 1) # instance with the highest anomaly score
visualizeInstance(dataFrame, nrow(dataFrame)) # instance with the lowest anomaly score
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.