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 can I achieve this ? Thanks for your help -- View this message in context: http://n4.nabble.com/Absolutely-No-idea-how-to-plot-my-Spatial-Data-tp1691341p1691341.html Sent from the R help mailing list archive at Nabble.com.
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
On 03/26/2010 08:32 AM, Babaorumi 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 can I achieve this ? >Hi Babaorumi, Have a look at the example for the color.scale function in the plotrix package. Jim
Thanks a lot for responding me. Gotta study now... -- View this message in context: http://n4.nabble.com/Absolutely-No-idea-how-to-plot-my-Spatial-Data-tp1691341p1691920.html Sent from the R help mailing list archive at Nabble.com.