Anomaly contours
You now have the key ingredients to produce a contour plot, which is a powerful tool for viewing how the anomaly score varies across the region spanned by the data points.
The wine_grid
data from the previous exercise has been preloaded for you to use.
Diese Übung ist Teil des Kurses
Introduction to Anomaly Detection in R
Anleitung zur Übung
- Use the
contourplot()
function to generate a contour plot of thescore
. - Ensure that the
pH
variable is shown on the y-axis andalcohol
on the x-axis.
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Contour plot of isolation scores
contourplot(score ~ ___ + ___, ___, region = TRUE)