> Can this type of solution be converted to an overal gradient independent > of the direction and then be added to some library? perhaps this is close: did you check out the function "gradient.rect" in the "plotrix Package" (http://cran.r-project.org/src/contrib/Descriptions/plotrix.html)? Thomas