On 5/28/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>  I'm trying to produce a plot of an image of a Matrix, but I don't get
>  other colors than the default grey scale:
>
>  > image(Matrix(topo.matrix.2),col.regions=topo.colors(100),colorkey=FALSE)
>
>  this still is plotted in grey.
>
>  Is there any mistake in my syntax?

Not sure what the problem is, but although the first call does not
work, the second one does:

image(Matrix(volcano), col.regions = topo.colors(100), colorkey = TRUE)

image(as(Matrix(volcano), "sparseMatrix"),
      col.regions = topo.colors(100), colorkey = TRUE)

-Deepayan

______________________________________________
R-help@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.

Reply via email to