Lost outline on points
Closed this issue · 20 comments
I added shapes into the figure and it caused the entire points to become black, so I removed the color = black argument and now I can't figure out how to get outlines on my points.
XCT-freezethaw/code/ER-20-conn_unconn.R
Lines 150 to 169 in f4cd8a4
your code isn't up to date. commit and push the new changes, so I can see them.
But it looks like you used aes(shape = ...) but didn't set the correct shapes. It's currently showing the solid shapes, which use color, not fill. Set the correct shapes with scale_*
(21, 22?) and bring back color = "black"
in the geom_point
.
also, in the color portion of the legend, arrange by color, so it's easier to understand. airs together and waters together.
I'll work on fixing the legend for future info, but I cut the legends out of these figures anyway.
great!
In case we haven't already discussed it, you can fix the legend color/fill with this:
guides(fill=guide_legend(override.aes=list(shape=21)))
I would do aes(shape = Type)
, and then scale_shape_manual(values = c(21, 21, 22, 22)
. (adjust the shapes as needed). That should give you a single legend.
Can you commit and push your code? I'll take a look at it.
Here it is!
XCT-freezethaw/code/ER-20-conn_unconn.R
Lines 179 to 203 in dfc1631
oh, line 198!
you are overriding the shapes to use shape = 21. remove that, and you'll have your shapes in the legend.
Wait.
Okay, I get what's happening. I can fix it.
great!
also,
- in the
geom_path
arguments, I would addshow.legend = FALSE
. that will remove it from the legend. right now, you have small nubs for the path. - since you have dark/light blue for water, can you also do red/pink for air? the red/yellow aren't a pair.
Yep, that's good!
Thanks!!!