[R] image.plot transparent?

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 10 16:22:47 CEST 2012


On 10/07/2012 13:41, Sarah Goslee wrote:
> This may be device and OS dependent, so please provide the information
> requested in the posting guide, at a minimum the output of sessionInfo(). A
> small reproducible example is also necessary.

I think not.  My guess is it is part of a package which we were not told 
('fields'), and this is the programmed behaviour in its two subcases.

But we'd need reproducible code (including which package) to be sure.

If this is fields, read ?poly.image.

>
> Sarah
>
> On Tuesday, July 10, 2012, Chris82 wrote:
>
>> Hi R users,
>>
>> I have a maybe strange problem.
>>
>> Normaly I do image.plot() with x,y coordinates and add=T and if I have some
>> NA values in my data matrix z, the color will be transparent of these
>> pixels.
>>
>> But now I have a disorted coordinate system and x,y are a matrix. It works
>> also fine, but now NA values are white colored and not transparent anymore.
>>
>> It is problematic if I have a secondary information underlying.
>>
>> Is there any solution for this stuff?
>>
>> Thanks!
>>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list