[R] x11() graphic device, displaying raster
Uwe Ligges
ligges at statistik.tu-dortmund.de
Wed Jan 25 15:04:31 CET 2012
On 25.01.2012 13:42, Johannes Radinger wrote:
>
>>
>> On 25.01.2012 12:45, Johannes Radinger wrote:
>>> Hello,
>>>
>>> I am wondering about the X11() graphic device on Windows.
>>> I try to plot a raster image but nothing gets displayed. I
>>> found some pages where it is mentioned that x11() not
>>> always supports raster rendering.
>>> Is there any add on for x11, any update or any R-package
>>> which solves that displaying problem in Windows?
>>>
>>> What I try to test it is an example from the
>>> package {raster}:
>>>
>>> library(raster)
>>> DEU_alt<- getData("alt", country="DEU", mask=TRUE)
>>> x11()
>>> plot(DEU_alt,axes=TRUE)
>>>
>>> best regards,
>>>
>>> /johannes
>>
>> Try an R version that is recent - it works for me.
>>
>> Uwe Ligges
>
> I first tried it with R 2.13.2 and raster version 1.9-64 (16-January-2012).
> Now I also installed the most recent version R 2.14.1 (Platform: i386-pc-mingw32/i386 (32-bit)) and raster version 1.9-64 (16-January-2012).
>
> But in both cases no success. X11() opens and draws the axis and the
> border for the scale but no raster...
I do not really understand why you are using x11(). The Windows device
is called windows() and you actually do not need to open it, since plot
opens it anyway. Or are you under cygwin (which is not really Windows)?
If not: Which version of Windows is this?
Uwe Ligges
> There is no problem with vector graphics...like:
> DEU_border<- getData("GADM", country="DEU", level=1)
> plot(DEU_border,axes=TRUE)
>
> Any suggestions what is going on resp. how to solve it...?
>
> /johannes
>
>
More information about the R-help
mailing list