Description Usage Arguments Details Value Author(s) See Also Examples

Function for drawing Overview of Outliers (O3) plots for one method and up to 3 tolerance levels and for drawing supporting parallel coordinate plots.

1 2 | ```
O3plotT(outResults, caseNames=as.character(1:nrow(outResults$data)),
O3control=O3plotColours())
``` |

`outResults` |
a list for each tolerance level, and within that for each variable combination, of the variables used, the indices of cases identified as outliers, and the outlier distances for all cases in the dataset. |

`caseNames` |
the ID variable used to identify the cases in an O3 plot, the default is the rownames from the dataset (so that they will then just be X7, X11, etc.) |

`O3control` |
A list of colours for O3 plots. If omitted, |

This function takes the output from `O3prep`

and draws an O3 plot with up to 3 different tolerance levels. The default colours are khaki for the least strict tolerance level, yellow for the next, and red for the strictest.

The two parallel coordinate plots, one using the raw data and one using outlier distances, are examples of what can be done to explore the results in more detail. If you want these plots with other highlighting then you can use outsTable with either the dataset or the Ds array to draw them using `ggparcoord`

from GGally or whatever graphics tool you prefer.

`nOut` |
numbers of outliers found for the specified tolerance levels |

`gpcp` |
a parallel coordinate plot of all the data with cases ever found to be outliers coloured red |

`gO3` |
an O3 plot |

`gCombs` |
a parallel coordinate plot of the outlier distances calculated for each variable combination for the full dataset with cases found to be outliers at the strictest tolerance level coloured red |

`outsTable` |
a table of all outliers found by case, variable combination, and tolerance level. The variable combination labels are a binary coding in the original order of the variables in the dataset. |

`Ds` |
a three-dimensional array of tolerance levels by variable combinations by cases of the outlier distances calculated. |

Antony Unwin [email protected]

`O3plotColours`

, `HDoutliers`

in HDoutliers, `FastPCS`

in FastPCS, `mvBACON`

in robustX, `adjOutlyingness`

in robustbase, `DetectDeviatingCells`

in cellWise, `covMcd`

in robustbase

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ```
a0 <- O3prep(stackloss, method="PCS", tols=0.05, boxplotLimits=3)
a1 <- O3plotT(a0)
a1$nOut
a1$gO3
b0 <- O3prep(stackloss, method="BAC", k1=2, tols=0.01, boxplotLimits=6)
b1 <- O3plotT(b0)
b1$nOut
b1$gpcp
b1$gO3
## Not run:
a2 <- O3prep(stackloss, method="PCS", tols=c(0.1, 0.05, 0.01), boxplotLimits=c(3, 6, 10))
a3 <- O3plotT(a2)
a3$nOut
a3$gpcp
a3$gO3
a3$outsTable
## End(Not run)
``` |

OutliersO3 documentation built on Feb. 9, 2018, 6:08 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.