Displaying 3 results from an estimated 3 matches for "estimatedsr".
Did you mean:
estimated
2011 Feb 07
1
color2d.maplot error
Dear all
I am using color2D.maplot to map some matrixes to plot. everything works fine. It seems that when my matrix contains only the same value color2D.maplot returns the following error:
color2D.matplot(estimatedsr,redrange=c(0,1),greenrange=c(0,.5),bluerange=c(0,.5),xlab="x",ylab="y",main=sprintf('Estimated'),show.legend=TRUE,show.values=TRUE)
Error in rgb(reds, greens, blues) : color intensity 18.5, not in [0,1]
Calls: color2D.matplot -> color.scale -> rgb
if you want to...
2011 Feb 10
1
color2D.maplot fixed color range
Dear all,
I have
-one matrix sr ([200,200]) which is the original file
-25 matrixes estimatedsr ([200,200]) which are an estimation of the sr.
As I am plotting these matrixes I want to have ONE common way that the cells are colored. Eg. Values from 10-20--> red color, 20-30-->blue color (or something like that). This is the only way one can easily compare all these matrixes together....
2011 Feb 16
1
sprintf does not print
...rack changes in variable's value.
This sprintf statement works if I copy and paste it inside R
sprintf('I did the the %d,%d \n',k,l)
but when this is inside a loop I get no message.
listcounter<-1
for (k in c(1:mmax)){ #
for (l in c(1:nmax)){
lst[[listcounter]] <-fun(estimatedsr)
listcounter<-listcounter+1
sprintf('I did the the %d,%d \n',k,l)
}
}
When I paste the code above I never get any message printed. I know that the loop works. When I kill the execution of the loop the listcounter variable has value different from the initial one.
What might...