[R] draw a circle with a gradient fill

Berry, Charles ccberry at ucsd.edu
Wed Oct 25 01:26:47 CEST 2017

> On Oct 24, 2017, at 2:56 AM, Alaios via R-help <r-help at r-project.org> wrote:
> Hi all,I would like to draw a simple circle where the color gradient follows the rule color = 1/(r^2) where r is the distance from the circle.

This is called a radial gradient fill in SVG speak.


> but this package does not give easily color gradients and so my solutions contains 5 same colors filled rings.

I would look at the gridSVG package. Examples of various gradient fills are here: 




More information about the R-help mailing list