The Egyptian god Min has very strong parallels with Pan. In fact, some believe Min may even be Pan who is thought to be far more ancient than some believe. Min is a god of fertility and sexuality, particularly male sexuality. He is also depicted as ithyphallic (erect and uncovered) just as Pan is. The Greeks were aware of this connection and identified Min as connected to Pan, during many of their fertility and orgiastic rites.
The prickly plant Lactuca virosa is sacred to Min, an aphrodisiac which secretes a milky substance (likened to semen).
Min is also a god of Agriculture.
(Photo credit: www.flickr.com/photos/amberinsea/)