[R] R base package grid does not output raster image

Terry terry.seaward at gmail.com
Sat Jul 27 08:31:41 CEST 2013

Prof Brian Ripley <ripley <at> stats.ox.ac.uk> writes:

> Basically Remote Desktop restricts the number of colours when connecting 
> to a Windows Server machine, and interpolating rasters needs a lot of 
> colours.

Hi Brain,

I looked into this further and have a solution.

1. On the server launch Remote Desktop Session Host Configuration. 
2. Under Connections, right click on RDP-Tcp and select Properties. 
3. On the Client Settings tab either uncheck LimitMaximum Color Depth 
    or set it to 32 bits per pixel. 
4. Click OK and log out of the remote session.

When remoting back in ensure that the colour depth on the Display tab is 
set to 32 bit. rasterImage, grid.raster, etc. now work as expected.


More information about the R-help mailing list