How can I draw a contour plot with Prediction probability

I have know how to draw the contour plot, however, I cannot calculate the exact prediction probability in R.
I used the R stuido.
I am confused in the place. because I am a doctor. and a beginning learner in statistics of medical data.