From ilia-kats at gmx.net  Sun Feb 11 14:15:23 2018
From: ilia-kats at gmx.net (Ilia Kats)
Date: Sun, 11 Feb 2018 14:15:23 +0100
Subject: [Rd] incorrect clipping on cairo devices
Message-ID: <cf6e7902-6095-00b3-2a3f-ff96601045f9@gmx.net>

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



[Rd] incorrect clipping on cairo devices
Ilia Kats