Re: [R] add a color band

2013-11-04 Thread Alaios
Hi Jim, thanks for the answer! I toyed around as you said and now they look cool and sexy! many thanks! Do you know if there is a way to compress a bit the output? The image type of functions have the useRaster parameter to set to have a "compressed" output. Right now the produced plots are aro

Re: [R] add a color band

2013-11-04 Thread Jim Lemon
On 11/04/2013 08:09 PM, Alaios wrote: Hi Jim Lemon, thanks for the help, I appreciate this. right now my code looks like. par(mar=c(5,4,4,5)) color2D.matplot(data,1,c(0,1),0,xlab="",ylab="Spans", main="color.scale",xrange=c(-110,-50),border=NA,axes=F) color.legend(357,30,370,100,seq(-110,-50,l

Re: [R] add a color band

2013-11-04 Thread Alaios
Hi Jim Lemon, thanks for the help, I appreciate this. right now my code looks like. par(mar=c(5,4,4,5)) color2D.matplot(data,1,c(0,1),0,xlab="",ylab="Spans",   main="color.scale",xrange=c(-110,-50),border=NA,axes=F) color.legend(357,30,370,100,seq(-110,-50,length.out=13),   align="rb",rect.col=c

Re: [R] add a color band

2013-10-28 Thread Alaios
Hi Jim and thanks for your answer... I might be too tired with my new born or just exhausted. I am sharing for everyone a small data snipset that you can load https://www.dropbox.com/s/fh8jhwujgunmtrb/DataToPlotAsImage.Rdata load("DataToPlotAsImage.Rdata") require(plotrix) browser() test<-da

Re: [R] add a color band

2013-10-27 Thread Jim Lemon
On 10/27/2013 08:39 AM, Alaios wrote: Hi Jim and thanks for your answer... I might be too tired with my new born or just exhausted. I am attaching for everyone a small data snipset that you can load load("DataToPlotAsImage.Rdata") require(plotrix) browser() test<-data # this transforms the val

Re: [R] add a color band

2013-10-26 Thread Alaios
Hi Jim and thanks for your answer... I might be too tired with my new born or just exhausted. I am attaching for everyone a small data snipset that you can load load("DataToPlotAsImage.Rdata") require(plotrix) browser() test<-data # this transforms the values of "test" into red->yellow color2D.

Re: [R] add a color band

2013-10-25 Thread Jim Lemon
On 10/25/2013 11:16 PM, Alaios wrote: Hi Jim and thanks for help I will need some help to make -the legend visible (probably at the right side of the window) -split the legend at 0.1 steps -1,-0.9,-0.8.1 and -assign a color heat.color(30). I have selected orange and reds -show me the way to

Re: [R] add a color band

2013-10-25 Thread Alaios
Hi Jim and thanks for help I will need some help to make -the legend visible (probably at the right side of the window) -split the legend at 0.1 steps -1,-0.9,-0.8.1 and -assign a color heat.color(30). I have selected orange and reds -show me the way to change the size of legend if it would

Re: [R] add a color band

2013-10-25 Thread Jim Lemon
On 10/25/2013 08:38 PM, Alaios wrote: Hi all, I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band at the right of the plot "describing" values with their corresponding color. For now I have only this code test<-matrix(data=runif(1)

[R] add a color band

2013-10-25 Thread Alaios
Hi all, I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band at the right of the plot "describing" values with their corresponding color. For now I have only this code test<-matrix(data=runif(1),nrow=100) plot(test,axes="FALSE") axi