similar to: color2d.maplot error

Displaying 20 results from an estimated 200 matches similar to: "color2d.maplot error"

2008 Sep 17
6
creating rainbow gradients
Hi, how can I create a rainbow gradient in R? For example, let's say I have a plot of y = x...and I want the plot to go from red -> orange -> yellow -> green -> blue -> etc. Right now, I know how to do something like go from red to blue, using the plotrix library: library(plotrix) redToBlue <-
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. The
2004 Dec 23
3
combination of scatterplot and image graph
Dear R users, I'm interested in a combination of a scatterplot and an image graph. I have two large vectors. Because in the scatterplot some areas are sparsely and others densely populated, I want to see the points, and I also want their color to be changed based on their density (similar to a heat map). Is there a function that can do that? Thank you, b.
2006 Aug 11
2
Colour-coding intervals on a line
Hi, This is a simple version of something that I am trying to do. If I can sort the problem basically, I figure I should be able to sort it for the program I'm writing (which would take longer to explain). I need to know if there is any way of using different colours for different intervals of a line on a graph. Eg. If I plot the line y=x for x=1:10, and split this line into 106 intervals
2011 Apr 14
4
Categorical bubble plot
Hi, I do not have much R experience just the basics, so please excuse any obvious questions. I would like to create bubble plot that have Categorical data on the x and y axis and then the diameter if the bubble the value related to x and y. Attached to the email is a pic of what I would like to do. I do hope someone can help me. -- Regards/Groete/Mit freundlichen Gr??en/recuerdos/meilleures
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 get this
2011 May 01
0
plotrix_3.2
Hi all, plotrix 3.2 has arrived. The reason for this announcement is that there have been a couple of major rewrites. The barNest family of functions has had an overhaul that began as a fix for an apparently trivial bug that caused problems with empty subcategories. So far, testing has not found anything that will break code written for the former version. color.scale will now convert
2006 Jan 07
2
Question about graphics in R
Considering the R function/plot shown below, I wonder whether it is possible to do the following changes: (1) Change the color of each point to be picked from list of colors according to its z-value. (The range should be from blue (z=0) to red (z=1).) The grid should then be omitted. [I have seen "terrain.colors", but don't know how to use it for this purpose.] (2) Add two lines to
2006 Apr 21
1
Titles in MAplots
Hi Does anyone know how to set the titles in MAplots to just show the CEL file name? So far I have; #define 'Array' as object containing CEL names Array <- col.names(Data) #open bmp and make a separate bmp for each MAplot bmp("C:/MAplot%03d.bmp") #remove the annotation and minimise margins par(ann=FALSE) par(mar=c(1,1,1,1)) #MAplot MAplot(Data...???? Does anyone know the
2011 Feb 16
1
sprintf does not print
Dear all I have an sprintf inside a loop to track 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
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[,1:5] <- 1 motifx[,6:10] <- 2 motifx[,11:15] <- 3 motifx[,15:19] <- 4
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("Y1",
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 version deleted]]
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 message in context:
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 color range. Similarly, the maximum value of each matrix
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 large" It would be appreciated if someone points me to the right origin
2010 Feb 19
1
Subtracting one based on an If
For the following: Bldgid<-c(1000,1000,1000,1001,1002,1003,1003,1003) Maplot<-c(20000,20001,20002,30000,30001,40000,40001,40002) Area<-c(40,170,160,50,100,100,90,110) #Construct Sample dataframe MultiLotBldgs..<-data.frame(Bldgid,Maplot,Area) CondoLots_ <- tapply(MultiLotBldgs..$Maplot, MultiLotBldgs..$Bldgid, length) CondoLots_ Returns: 1000 1001 1002 1003 3 1 1
2010 Feb 17
1
Procedure not working for actual data
Hello all, I have what i feel is a unique situation which may not be resolved with this inquiry. I have constructed the below data set so that i may give an example of what im doing. The example works perfectly and i have no issues with it. My problem arises with my actual data, which includes another 11 columns of data (used in later analysis) and a total of about 7000 cases(rows). i
2011 Jan 23
1
Plotting multiple xts/zoo time series on a single plot.
So I've got a 154 column wide xts time series object and I want to plot the 154 series on a single plot and have the added benefit of the time series dates on the x axis. Any suggestions for plotting functions, maplot works but does not give dates on the axis and I can't seem to get plot to give me more than one series. Nick [[alternative HTML version deleted]]
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 the axis ticks