See this article Using Pear to get started and then you can check and see if there are not any libraries that you need to do what you want with Pear.
This article on thi site about Pear and Graphs might just speed you along and I am now kind of interested in it myself. You already have a majority of the pagkages that come with PHP and if you have the latest XAMPP then you will find the Pear folder inside the PHP folder which will be in the xampp folder if it were a standard install then look for c:\Program Files\xampp\php\pear