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
It's quite hard to create these legends as we are already using fill and color.
I know there some options, but I was thinking in a easier way. Something like:
df |>
ggplot(aes(x = value, y = categories))+
geom_col()+
add_legend(fill = "#d8d8d8", color = NA, name = "Dentro das terras indígenas")+
add_legend(fill = NA, color = "#222222", name = "Fora das terras indígenas")
Could it be added to ggplot2, or to other package like legendry?
The text was updated successfully, but these errors were encountered:
Argueably, the distinguishing feature between the two sets of filled/open bars is the linetype.
If you divide the these sets over two layers, the legend for linetype already distinguishes filled/non-filled along with the linetype.
When I was trying to remake this plot:
It's quite hard to create these legends as we are already using
fill
andcolor
.I know there some options, but I was thinking in a easier way. Something like:
Could it be added to ggplot2, or to other package like legendry?
The text was updated successfully, but these errors were encountered: