hi, i have a data frame like this: 0.3 0.7 0.4 0.8 i am trying to plot this data frame and each cell is filled with different colors based on the value. Is there a function which can do this? thanks, -- Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III
Yep: ?image "Creates a grid of colored or gray-scale rectangles with colors corresponding to the values in z. This can be used to display three- dimensional or spatial data aka ?images?. This is a generic function." Hope that helps, Jeff. On Oct 30, 2006, at 7:01 PM, Weiwei Shi wrote:> hi, > i have a data frame like this: > 0.3 0.7 > 0.4 0.8 > > i am trying to plot this data frame and each cell is filled with > different colors based on the value. Is there a function which can do > this? > > thanks, > > > -- > Weiwei Shi, Ph.D > Research Scientist > GeneGO, Inc. > > "Did you always know?" > "No, I did not. But I believed..." > ---Matrix III > > ______________________________________________ > R-help at stat.math.ethz.ch 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.
try heatmap function On 10/30/06, Weiwei Shi <helprhelp@gmail.com> wrote:> > hi, > i have a data frame like this: > 0.3 0.7 > 0.4 0.8 > > i am trying to plot this data frame and each cell is filled with > different colors based on the value. Is there a function which can do > this? > > thanks, > > > -- > Weiwei Shi, Ph.D > Research Scientist > GeneGO, Inc. > > "Did you always know?" > "No, I did not. But I believed..." > ---Matrix III > > ______________________________________________ > R-help@stat.math.ethz.ch 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. >-- Waverley @ Palo Alto [[alternative HTML version deleted]]