Re: [R] possible bug in image() ??

From: <vincent_at_7d4.com>
Date: Mon 10 Oct 2005 - 16:17:05 EST

Gareth Davies a écrit :

> Hi everyone.
> The function image() seems not to be correctly plotting some
> matrices that I give it. (I’m using R 2.1.1)
> ..where the first column in x (vector ccc) is depicted
> horizontally along the bottom of the image.

Hello,
here's a way to have an image according the usual view.

timage = function(M)
{
M1 = M;
for (i in 1:nrow(M)) M1[i,] = M[nrow(M)-i+1,]; image(t(M1));
}

hih



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 Received on Mon Oct 10 16:23:19 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:33:59 EST