-
Notifications
You must be signed in to change notification settings - Fork 3
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
pdf() device transparency problems with shape = "outline" #23
Comments
Bug checks out on my machine too. Using |
|
The problem is not border_grob replacing the colour with transparency. Seems to be to do with the mask grob; setting mask_grob = FALSE works fine but then obviously leaves a square inset. |
A workaround on Mac is to use the My guess is that the original |
Added documentation on recommended graphics devices in the help file. Leaving this open for others to find. |
Thanks for keeping this open... Glad you added the paragraph
I think that having this information at the Top of the I see that there are other options within that package for other formats and has great features (speed, font access etc.) Well worth the discovery! Thanks. JYS |
Yes, but from knitr the device option must be set to "ragg_png" (and no, I don't know why this name was chosen...) See README.Rmd source for an example. |
I love
> I don't know why this name was chosen... I found that
I still believe that the "standard" method should be clearly mentioned, perhaps with the link to the ragg package README.html for those using |
You can't hold people's hands too much. Otherwise, you just end up reproducing other packages' documentation. Then you have increased the burden on yourself, and when the other package updates, your docs are inaccurate. It's fine to expect people to figure out agg_png/ragg_png by themselves. |
Also again, no offence, but this is an issue tracker, not a forum. I didn't notice till now, but this question is completely irrelevant to this issue. That makes it harder for me to track the state of play for the actual bug. Please keep issues separate. |
I just tested the "Texas" commands and I see that it works for PDF but not PNG Device.
However, while the transparency of the backbround of the PDF version is achieved, the Texas state itself is not colored red. With
shadow = TRUE
there is a gray coloring inside. Withshadow = FALSE
there is only the orange outline. I colored the rest of the states "green4" with "yellow" lines to make the image different. Here are the PDF (Device) output usingpdf(file="Texasplot2.pdf")
anddev.off()
:(Saving to PNG looks the same as the one on the first comment, with a red Texas but blue neighbours.)
Originally posted by @jsgro in #22 (comment)
The text was updated successfully, but these errors were encountered: