[Rd] incorrect clipping on cairo devices
Ilia Kats
ilia-kats at gmx.net
Sun Feb 11 14:15:23 CET 2018
Hi all,
consider the plot https://ptpb.pw/rTGw.pdf , generated by
cairo_pdf();plot(1, 1, pch=16, cex=10, xlim=c(1,2),
ylim=c(1,2));dev.off() . Notice how the circle is outside the bottom
edge of the box. While this example is somewhat artificial, this
behavior is very annoying when plotting scatterplots with lots and lots
of data points and restricting xlim and ylim to show only a subset of
data. I believe the cause was identified in
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16299 . I also
believe that this is the cause of
https://github.com/tidyverse/ggplot2/issues/670 (correct clipping would
produce thinner than specified borders on all sides, which could be
remedied by simply requesting a twice as wide border).
Are there any plans to fix this?
Note that I'm not subscribed to the list, so please CC me in replies.
Cheers, Ilia
More information about the R-devel
mailing list