Closed Sharpie closed 13 years ago
At the C level, R uses pGEcontext
, a pointer to a structure, to store plot information. The line width is encoded in pGEcontext->lwd
which is of type double
. The code in the tikzDevice responsible for calculating and printing line widths was declaring lwd
to be of type int
. This resulted in calculations that were either incorrect or ignored.
Fixed in Sharpie/RTikZDevice@082cdf8c501bf69696bff6a57ddca6caa5b1f932
As reported by Baptiste Auguie:
A simple plot of several lines with various thicknesses using
grid
graphics:Produces output with far less variation in line thickness than the
lwd
parameter would suggest:The parameter values passed to
TikZ_Line
inplotParams->lwd
are: