[R] plot data with a colour scale

Mike Prager mike.prager at noaa.gov
Tue Apr 15 18:56:00 CEST 2008


"merca duria" <mercaduria at gmail.com> wrote:

> I have a two dimensional data (X,Y) that I want to represent with different
> colours,
> 
> I want to make a plot with a graduate color scale at right, or below

Take a look at the levelplot function in the lattice package.

require(lattice)
?levelplot


-- 
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.



More information about the R-help mailing list