Open falkmielke opened 4 weeks ago
Thanks! I think it's because of the alpha.region = 0.2
setting, which sets transparency. Two things to note:
alpha.regions
, not alpha.region
; this is to be changed anyway, in multiple places. I think it still gets picked up correctly by R because of partial matching, but we don't consider this good practice.alpha.regions
is 0.8. You could try with alpha.regions = 1
to see whether that causes consistency indeed.
Dear all,
I encountered a very minor issue when working through the
n2khab::v022_example
vignette. The following code block (slightly modified from the vignette: usingexplan=TRUE
and native pipes) produces a soil map of the Zwin:However, the colors on the map do not match the legend. The firsts categoy, "klei", gets a gray tint instead of dark blue. Gray seems to be reserved for NA, which we probably don't have in the Zwin.
I would expect R |
sf
to use thefillColor
attribute consistently for map and legend, which is correctly set to dark blue#4B0055
for klei (correct on legend, but not displayed on the map).I suspect an issue with R factors in
sf
, or some hiccup with thefillColor
attribute (spelling?). Probably this is upstream but can be controlled with some extra args.Note that this is least priority; I am just fond of writing issues. I am currently just beginning to read into the package, and will happily get back here to solve this myself once I understand more.
Cheers,
Falk
edit: sys info for reference