IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Introduction to Anomaly Detection in R

Visualizza il corso

Istruzioni dell'esercizio

  • Use the contourplot() function to generate a contour plot of the score.
  • Ensure that the pH variable is shown on the y-axis and alcohol on the x-axis.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Contour plot of isolation scores
contourplot(score ~ ___ + ___, ___, region = TRUE)
Modifica ed esegui il codice