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
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
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
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