Open
Description
Not sure if this is possible if they're basically equivalent to geom_point
... I can theoretically load in an alternate set of SVGs that have strokes hard-coded into them, but when I tried to do it with <circle>
elements, convertPicture
didn't like them. Plus, it'd be neat to do custom strokes without fiddling about.
I suppose if I'm desperate I could add a separate, slightly larger geom_point
behind the flags... can't jitter unless I do it manually then, though :/
Activity
jimjam-slam commentedon Sep 16, 2017
I've gotten this starting to work in caee020. When a
stroke
aesthetic is supplied, instead of rendering just apictureGrob
, I instead render agTree
that contains thepictureGrob
and apointsGrob
of shape 21 (a ring). Because they make up a single geom, this should work with jitters(though I haven't tested it yet)(confirmed).However, there are some problems:
Colours are totally messed up (see below), and it seems like they 'stick' if i draw a new plot with modified data. I'm guessing this is a scope problem: variables getting created and hanging around after the draw instead of being cleared. Not too sure.Example:
jimjam-slam commentedon Sep 16, 2017
Stroke colours render correctly when supplied statically (ie. not as aesthetics). But they're incorrect when supplied as aesthetics (whether as keywords, like
"red"
, or as hexcodes, like"#ff0000"
).jimjam-slam commentedon Sep 16, 2017
Well, I clearly need my sleep: I totally forgot that when you supply an expression to the
colour
aesthetic, the unique values of that expression aren't actually used as colour arguments (the unique values are just used to group the geoms).The above example needed:
Yep. Time for bed.
fabeit commentedon Jun 9, 2021
Was this ever implemented? I can't make it work
jimjam-slam commentedon Jun 9, 2021
It wasn't, I'm afraid!
jimjam-slam commentedon Jun 9, 2021
Actually, I believe my progress on this is on the
feature-outlines
branch. So if you install that branch using devtools, you might have some luck! I don't rememberif I ever finished it, though 😭