You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to see these rectangles mitred and also filled with a color gradient. Ideally the aes(linewidth=th) case would also work, in which case each segment is a trapezoid before joining. I'm willing to write the PR. Does the current gradient-less behavior need to be available through something like geom_path(gradient=FALSE)?
If you need some kind of interpolation of paths, there already is ggforce::geom_link2() that comes very close to the effect you're looking for. It works best when lineend = 'round'.
I'm afraid that it won't be straightforward to implement your proposal without essentially rewriting the paths part of a graphics engine. However if you're interested, Paul Murell has written a series of blogs about variable-width lines:
I would like to see these rectangles mitred and also filled with a color gradient. Ideally the
aes(linewidth=th)
case would also work, in which case each segment is a trapezoid before joining. I'm willing to write the PR. Does the current gradient-less behavior need to be available through something likegeom_path(gradient=FALSE)
?The text was updated successfully, but these errors were encountered: