netplot icon indicating copy to clipboard operation
netplot copied to clipboard

Using other than scalars for `gpar` does not work

Open gvegayon opened this issue 3 years ago • 0 comments

The way I wrote set_gpar, it will replicate arguments and turn them into a list. Unfortunately, when passing an argument that IS A LIST, like grid::radialGradient(), does not work. This should be an easy fix.This is the code that fails:

p <- nplot(...)
p <- set_vertex_gpar(p, "core", fill = radialGradient(c("white", "black"), cx1=.8, cy1=.8, r1=0))
print(p) # fails

gvegayon avatar Jun 18 '21 21:06 gvegayon