[R] Absolutely No idea how to plot my Spatial Data
Eik Vettorazzi
E.Vettorazzi at uke.uni-hamburg.de
Fri Mar 26 13:11:18 CET 2010
Hi,
Peter Alspach schrieb:
> Tena korua
>
> Also, bear in mind that colours can be specified as grey0 - grey100;
> i.e., paste('grey', round(100*z/max(z), 0), sep='').
or a lot easier using the built-in function
col=gray(z/max(z))
> Also, the
> colorspace package is worth considering if you are not restricted to
> black and white.
>
> HTH ....
>
>
> Peter Alspach
>
>
>> -----Original Message-----
>> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
>> project.org] On Behalf Of Steve Lianoglou
>> Sent: Friday, 26 March 2010 11:45 a.m.
>> To: Babaorumi
>> Cc: r-help at r-project.org
>> Subject: Re: [R] Absolutely No idea how to plot my Spatial Data
>>
>> Hi,
>>
>> On Thu, Mar 25, 2010 at 5:32 PM, Babaorumi
>>
> <gildas.mazo.u900 at gmail.com>
>
>> wrote:
>>
>>> Hi,
>>>
>>> I have a data set of points which are represented by 3 variables
>>>
>> x,y,z where
>>
>>> x is the position of the point on the x-absciss and y on the y-
>>>
>> absciss. Each
>>
>>> of my points has a value z, which I want to be displayed as follows:
>>>
>> the
>>
>>> more z is high, the more the color on the map is dark.
>>>
>> How about just tweaking the alpha/transparency for each point as a
>> function of its value.
>>
>> See this thread for inspiration:
>> http://thread.gmane.org/gmane.comp.lang.r.general/158649
>>
>> HTH,
>> -steve
>>
>> --
>> Steve Lianoglou
>> Graduate Student: Computational Systems Biology
>> | Memorial Sloan-Kettering Cancer Center
>> | Weill Medical College of Cornell University
>> Contact Info: http://cbio.mskcc.org/~lianos/contact
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-
>> guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Eik Vettorazzi
Institut für Medizinische Biometrie und Epidemiologie
Universitätsklinikum Hamburg-Eppendorf
Martinistr. 52
20246 Hamburg
T ++49/40/7410-58243
F ++49/40/7410-57790
More information about the R-help
mailing list