How to explain and analyze the orientation correlation functions

Hi,every MS users:

I have run a project with a system of water molecules and want to analyze the orientation between water molecules and  a specified direction,

now I get the plot and show it here:

0_)1O8O{1VYDEB`A%J5\$GWN.jpg

In the plot, the abscissa axis is r and the vertical axis is p(r), but I don't know what the meaning of  the p(r) and r, and how to obtain the angle

distribution between the O=H bond in water and the specified direction,I wish one give me some suggestion.

Best,

/qinjian