Displaying 2 results from an estimated 2 matches for "gridstateelement".
2015 Sep 26
1
grDevice in R HEAD been broken for 6 weeks.
...--------------
It seems to be broken by the GE_SaveSnapshotState addition
in src/library/grid/src/state.c:
case GE_SaveSnapshotState:
+ /*
+ * Save the current 'grid' DL.
+ */
+ PROTECT(result = allocVector(VECSXP, 3));
+ SET_VECTOR_ELT(result, 0, gridStateElement(dd, GSS_DL));
+ SET_VECTOR_ELT(result, 1, gridStateElement(dd, GSS_DLINDEX));
+ UNPROTECT(1);
break;
> showCols2()
Loading required package: grid
Error in grDevices:::recordPalette() :
LOGICAL() can only be applied to a 'logical', not a 'list'
Calls: dem...
2013 May 21
1
Lattice, ggplot, and pointsize
Hi!
When inserting R plots into a document using odfWeave, I fought for a
while to get Lattice plots use the same text size as base plots. I
eventually discovered that specifying a point size via e.g.
svg(pointsize=10) has no effect on Lattice plots. One needs to adjust
the size manually via:
trellis.par.set(fontsize=list(text=10, points=8))
This is also developed for both Lattice and ggplot2 by