Yes,
I believe I did something along your lines.
See the code snippet at the end of the email which sorts everything out
as far as I am concerned.
Cheers
Lorenzo
#
library(Cairo)
library(plotrix)
set.seed(1234)
myseq <- abs(
Lorenzo,
I think your question was already answered by Jan van der Laan -
http://r.789695.n4.nabble.com/Plotrix-Trick-tp2265893p2266722.html
--
View this message in context:
http://r.789695.n4.nabble.com/Plotrix-Trick-tp2267177p2267225.html
Sent from the R help mailing list archive at Nabble.c
On Jun 24, 2010, at 11:38 AM, Lorenzo Isella wrote:
Dear Hrishi,
I am almost there, thanks. The only small problem left is to convince
also the colorbar to plot the values I want.
Consider the small snippet at the end of the email: colors and numbers
inside the cells are OK, but the legend show
Lorenzo,
You can also use a custom colorscale using color.scale and the
cellcolors option of color2D.matplot:
pdf("test_color_scale_logcolor.pdf")
oldpar<-par( mar = c(4.5,5, 2, 1) + 0.1,
cex.axis=1.4,cex.lab=1.6,cex.main=1.6)
cellcolors <- color.scale(log(A),c(0.2,1),c(0.2,0.5),c(0,0))
color2D.
Lorenzo,
This is a bit ugly but should work. Instead of using plotrix's show.values,
use the text() command:
for(i in 1:5) {
for(j in 1:5) {
text(i-0.5,j-0.5,format(A[6-j,i],digits=3),col="white")
}
}
--
View this message in context:
http://r.789695.n4.nabble.
On Wed, Jun 23, 2010 at 10:01 AM, Lorenzo Isella
wrote:
> Dear All,
> I am using the plotrix library to plot some matrices.
> I have a problem: some of my data are outliers, hence using a linear
> color scale does not work very well (you would see too many cells having
> a similar, indistinguishab
6 matches
Mail list logo