[Rd] inconsistency between order() and sort()

2015-11-05 Thread Hervé Pagès
Hi, There is an obvious relationship between order() and sort(): > x <- c("b", "c", NA, "a") > identical(x[order(x, na.last=TRUE)], sort(x, na.last=TRUE)) [1] TRUE > identical(x[order(x, na.last=FALSE)], sort(x, na.last=FALSE)) [1] TRUE > identical(x[order(x, na.last=NA)], sort(x, na

Re: [Rd] PDFs and SVGs containing rasterGrobs don't display correctly in some other software

2015-11-05 Thread Henrik Bengtsson
On Nov 5, 2015 03:45, "Richard Cotton" wrote: > > I've just been trying to post-process some R-created heatmaps using > Inkscape, but I can't get them to display correctly in that software. > > To reproduce: > > library(grid) > r <- as.raster(matrix(runif(25), 5, 5)) > pdf("test.pdf") > grid.newpa

Re: [Rd] PDFs and SVGs containing rasterGrobs don't display correctly in some other software

2015-11-05 Thread Hadley Wickham
On Thu, Nov 5, 2015 at 5:43 AM, Richard Cotton wrote: > I've just been trying to post-process some R-created heatmaps using > Inkscape, but I can't get them to display correctly in that software. > > To reproduce: > > library(grid) > r <- as.raster(matrix(runif(25), 5, 5)) > pdf("test.pdf") > grid

[Rd] PDFs and SVGs containing rasterGrobs don't display correctly in some other software

2015-11-05 Thread Richard Cotton
I've just been trying to post-process some R-created heatmaps using Inkscape, but I can't get them to display correctly in that software. To reproduce: library(grid) r <- as.raster(matrix(runif(25), 5, 5)) pdf("test.pdf") grid.newpage() grid.raster(r, interpolate = FALSE) dev.off() This figure s