To plot the KNN data