# Understanding calibrating probabilities using R

I am trying to understand R's calibration(package:caret) function. My main interest is binary classification. Calibration function is used for plotting true probabilities vs predicted probabilities. I wonder the algorithm for true probabilities. The packages document is at below link:

CRAN: caret

What is its algorithm? I will be very glad for any help. Thanks lot.