[R] Image to plot

Alaios alaios at yahoo.com
Mon Feb 7 14:09:42 CET 2011


Hello again,
actually I am trying to store many files to hard disk and thus I want to 
1.create new plot
2.save it
3. close it

I have successfuly completed 1 and 2 but when I try to close it

color2D.matplot(tespa,redrange=c(0,1),greenrange=c(0,.5),bluerange=c(0,.5),xlab="x",ylab="y",main=sprintf("TestTitlos %d",2),show.legend=TRUE,show.values=TRUE)
dev.off(dev.cur())

it doesnot.
it seems for me that it takes some time until color2D.matplot is printed out and thus when dev.off(dev.cur()) is issued has nothing to close.

What should I try to do for that?

Best Regards
Alex


--- On Mon, 2/7/11, Jim Lemon <jim at bitwrit.com.au> wrote:

> From: Jim Lemon <jim at bitwrit.com.au>
> Subject: Re: [R] Image to plot
> To: "Alaios" <alaios at yahoo.com>
> Cc: R-help at r-project.org
> Date: Monday, February 7, 2011, 9:39 AM
> On 02/07/2011 06:37 PM, Alaios
> wrote:
> > Dear all I would like to plot the contents of a matrix
> as an Image. I found this code here http://www.phaget4.org/R/image_matrix.html but this is
> not only what I want. Instead of having inside every cell
> the color of the cell it would be nice to have also the
> arithmetic value over the background color.
> >
> > Having only the color sometimes does not make it clear
> to understand what is the value each cell has .. so I was
> thinking to combine colors and text inside every cell.
> >
> Hi Alex,
> Check out color2D.matplot (plotrix) in particular the
> show.values argument.
> 
> Jim
> 
>



More information about the R-help mailing list