Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

legend doesn't capture the right color for borders when defaults are used #463

Open
jordansread opened this issue Mar 22, 2017 · 0 comments

Comments

@jordansread
Copy link
Member

gs <- gsplot() %>% 
     rect(1.15,2,1.25,2.5, col = "blue", density = 15, angle = 45, legend.name = "box") %>% 
     legend()
gs$legend$legend.auto$border
[1] "black"

But the rect renders as having a blue border (black in the legend). Per docs:

border color for rectangle border(s). The default means par("fg"). Use border = NA to omit borders. If there are shading lines, border = TRUE means use the same color for the border as for the shading lines.

Looks like our legend does the right thing, but our rect does the wrong thing? Either way, these two should match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant