search for: color2d

Displaying 20 results from an estimated 60 matches for "color2d".

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(...
2008 Jun 17
2
color2D.matplot axis names
Hi, I finally came up with a nice colored matrixplot, using the color2D.matplot function of the plotrix package. But I can't assign xtics and ytics to this plot. I made sure that the matrix has correct colnames() and rownames(). Here's what I do: a=matrix(1:16, 4, 4) colnames(a) <- c("X1", "X2", "X3", X4) rownames(a) <- c(&...
2010 Mar 06
1
color2D.matplot not giving colors
I am using color2D.matplot to plot a matrix about 400 by 200. The values in the matrix are 0:5 and NA. The resulting plot is not color, but shaded b/w. I tried to figure out how to add colors, I would like something like c(blue, green, red, cyan, green) #example motifx <- matrix(NA, nrow=100,ncol=20) motifx[...
2007 Nov 06
1
color2D.matplot
I am a true R novice aonly using it for this function ;) I am trying to use color2D.matplot to form a image of my data using the following conditions color2D.matplot(fi1, c(dr), c(dg), c(db), nslices=7, ylab='Species', xlab="gene", show.legend=TRUE) where fi1 is my matrix. I have a matrix with 36 columns and 130 rows. most entries are 1 or 0 and I am trying to...
2011 Jul 21
1
How to set Color scale for color2D.matplot()
Hello, everyone. I am trying to show the correlation matrix using color2D.matplot(). And I want to map (0,1) to (dark red to dark green). But by default color2D.matplot() will map(min element of given matrix, max element of given matrix) to (dark red to dark green). Can anyone help me with this issue? Thanks a lot! Youcheng Lin ____________ [[alternative HTML vers...
2011 Apr 03
3
Error in "color2D.matplot" : "Error in plot.new() : figure margins too large"
Hi, I am using color2D.matplot (...) function of "plotrix" package. I used a matrix of size around 20*20 However, apparently it failed to visualize the matrix and gave the following exception, which I don't have any idea about possible source of this error. "Error in plot.new() : figure margins too...
2008 Oct 16
2
NAs in color2D.matplot
Hi, I am trying to plot a large matrix by using color2D.matplot. A substantial part of the matrix has no data (NAs). However, when trying to plot it, I get an error. It is only when I change all NAs to zeros that it works, but that in some way introduces 'wrong' data. Is there any workaround this? Thank you in advance!!! Bernardo -- View this...
2011 Feb 10
1
color2D.maplot fixed color range
...maller and higher than the original sr). I am trying since yesterday to do that with colord2D.matplot but so far I failed. There is a function colcolor<-color.scale(sr,xrange=range(sr)) but this just returns colors and not ranges where a color should be applied. so when I plot my images with: color2D.matplot(estimatedsr,xlab="x",ylab="y",main=sprintf('Estimated %d',i),show.legend=FALSE,show.values=FALSE,border=NA,cellcolors=colcolor) all the plots get the same cell color in every cell which too far from correct. So do you know if it is possible with color2D.maplot...
2011 Dec 12
2
Color2D.matplot uniform color range
Hi all. I am having a problem using color2D.matplot I am trying to visualize several different matrices under two color ranges. One color range corresponds to values less than 1 and the second color range for values greater than 1. However, the minimum value of each matrix differs and is automatically set to have the smallest value in the co...
2013 Oct 25
1
add a color band
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(10000),nrow=100) plot(test,axes="FALSE") axis(1,at=c(0,1),labels=c("a","b")) # but  I would like to add
2010 Mar 09
3
Fine Tuning Plotrix
Dear All, Please see the code snippet at the end of the email. I am using the color2D.matplot in Plotrix to plot a matrix. It works great, but there are a few things I cannot figure out (1) the value of cex.axis in the code snippet does not seem to affect the final pdf at all (at least on my system, Ubuntu 9.10, plotrix and Cairo installed from cran). How do I specify the size of...
2007 Mar 22
2
Colored boxes with values in the box
...le 0 to 15 - Blue, 16-30- Yellow, and 31-40- Red). Then I need to draw a rectangular matrix which contains X x Y boxes and each box has the corresponding value from the input matrix and is also colored according to which group (i.e red, yellow, or blue) that value falls into. I have used the color2D.matplot function from the plotrix package, but I cant quite figure out how to group the values to represent red blue and yellow colors. Thanks Kartik ---------------------------------------------------------- IMPORTANT WARNING: This email (and any attachments) is only...{{dropped}}
2009 May 13
4
plotting a grid with color on a map
Hi all, I have posted similar questions regarding this topic, but I just can't seem to get over the hump and find a straightforward way to do this. I have attached my file as a reference. Basically, the attached file is a 5 degree by 5 degree grid of the the world (2592 cells), most of them are NA's. I just want to be able to plot this grid over a world map and color code the cells. For
2010 Jun 23
5
Plotrix Trick
...renzo library(plotrix) set.seed(1234) myseq <- abs(rnorm(25)) myseq[20] <- 100 #introduce outlier! A <- matrix(myseq, ncol=5,nrow=5) #nasty looking figure pdf("test_color_scale.pdf") oldpar<-par( mar = c(4.5,5, 2, 1) + 0.1, cex.axis=1.4,cex.lab=1.6,cex.main=1.6) color2D.matplot(A,main="Title",c(0.2,1),c(0.2,0.5),c(0,0), xlab = "", ylab="", show.legend=TRUE, show.values=1,vcol="black",vcex=1, axes=FALSE) ## axis(1,at=c(0.5,1.5,2.5,3.5,4.5),labels=prefix_vec_short) ## axis(2,at=rev(c(0.5,1.5,2.5,3.5,4.5)),labels=prefix_vec_...
2011 Aug 05
3
plotting many unique colors with categorical data
...10 58 58 58 28 28 8 58 58 42 27 10 39 39 9 22 39 22 42 42 27 42 10 39 22 10 39 39 20 10 I have 75 factors which could be in different positions through out time (26 years). I've successfully created a plot using both ggplot() and color2D.matplot(), but can not select enough distinct colors from the default color palettes available to be able to view differences in the data. I've tried messing with RGB values, Brewer palettes, etc. How can I select colors from a list of available colors without choosing ones which are too cl...
2011 Jul 29
2
problems with image.plot()
Hi all, I used image.plot() to create a heat map of a matrix: as.matrix(read.table("Matrix.txt", sep="\t"))->x HeatBrk<-seq(5,25,2.5) MyCol= gray((7:0)/7) library(fields) image.plot(x, col=MyCol, breaks=HeatBrk, legend.shrink=0.3) dev.copy(device=pdf, file="HEAT4!.pdf", height=8, width=8) dev.off() There are a few things that I would like to do that I
2006 Aug 07
2
Is there a function in R can help me to plot such a figure?
Hi, i want to plot figure like this, http://www.cis.hut.fi/projects/somtoolbox/download/pics2/shotvs2_colorcode.png So is there a function or package in R can help me to do this. Any suggestion will be appreciated. Thanks in advance Jiantao Shi [[alternative HTML version deleted]]
2007 Nov 22
2
Heatmap problem
Hi friends, I used heatmap(as.matrix(y2),col=rainbow(256),scale = "column") to generate the heatmap. But it did not show the code that which color correspond the value. Is there any parameter for this in heatmap()? Thanks a lot! Allen [[alternative HTML version deleted]]
2009 Jun 10
2
filled.contour as image
Hi, Is there a way to make the filled.contour() function produce a plot similar to the image() function? i.e. not have smooth contours but rather distinct "squares" corresponding to the different cells of the matrix. The reason I ask is because since image doesn't have an option to display colour bars it is a lot less useful. Cheers Muri Soares Department of Maths and Applied
2011 Jun 14
1
heatmap with values
Hi! I'm displaying a contingency table with heatmap(): > svm.predPix.tabla svm.predPix CC DD LL NN NN2 CC 22 0 3 8 3 DD 0 27 0 1 0 LL 1 1 90 3 7 NN 2 0 1 11 4 NN2 0 0 5 1 20 > heatmap(svm.predPix.tabla[5:1,], Rowv=NA, Colv=NA,col = rev(heat.colors(32)), scale="column", margins=c(5,10)) and I'm happy