[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.
[snip]
> 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:
https://www.stat.auckland.ac.nz/~paul/Reports/leaf/leaf.html#idp625472
HTH,
Chuck
More information about the R-help
mailing list