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

feature request: pattern fill for paper publications #8

Open
rlzijdeman opened this issue Feb 27, 2014 · 2 comments
Open

feature request: pattern fill for paper publications #8

rlzijdeman opened this issue Feb 27, 2014 · 2 comments

Comments

@rlzijdeman
Copy link

Hi, I was wondering whether it would be possible to use some kind of pattern fill for the leaves rather than colour. For example, by plotting symbols on the the leaves (or just using different line types). The purpose of this would be to have tree maps for black and white printing.

@mtennekes
Copy link
Owner

Wow, black white printing and shading patterns.. back to the good old days;-)

This feature boils down to draw a plain grid rectangle.

grid.newpage()
grid.rect(x=.5, y=.5, width=.3, height=.3, gp=gpar(fill="blue"))

I checked the grid manual to see if there was some sort of pattern fill parameter that can be given to gpar, but without success. However, gridExtra may be the key.

At the moment, I don't have time to implement it, but feel free to try.

@rlzijdeman
Copy link
Author

Hehe, yep in academia printing still is required to get your paper published ;) Thanks for the hints, I don't think my skills are already sufficient to implement it, but grid.pattern / patternGrob in {gridExtra} does seem able to provide fill patterns.

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

No branches or pull requests

2 participants