Displaying 20 results from an estimated 400 matches similar to: "color2D.maplot fixed color range"
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,
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
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
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",
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 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 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 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
2008 Oct 02
0
Hexagon border in plotrix's math2D.plot
Hi there,
I'm attempting to use
color2D.matplot(x,cellcolors=cellcol, do.hex=TRUE)
from the plotrix package, but do not want to have borders around the hexagons. I've tried various approaches such as
fg="white", col="white", lty=0, lwd=0 and border=NULL/FALSE/"white", but none of them works.
I'd appreciate any ideas.
Thanks,
John
--
GMX Kostenlose
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
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]]
2011 Feb 17
1
color.scale error
Dear all
when I call color.scale like this:
require('plotrix')
colcolor<-color.scale(c(range_sr,sr),extremes=c("red","blue"))
Error in if (min(reds) < 0 || max(reds) > 1) reds <- rescale(reds, c(0, :
missing value where TRUE/FALSE needed
range_sr
[1] -10.00000000000000 44.02977813958366
str(sr)
num [1:100, 1:100] 2.54 2.71 2.89 2.95 3.03 ...
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 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
2010 Jun 23
5
Plotrix Trick
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, indistinguishable color). See the code snipped at the end of
the email.
Plotting the logarithm of the data gets the job done, but my problem is
that I would like to write in every
2007 Mar 22
2
Colored boxes with values in the box
Hi all,
I have a x, y matrix of numbers (usually ranging from 0 to 40). I need
to group these numbers and assign a color to each group (for example 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,
2008 Oct 15
2
Help with matplot
Hi, I apologise in advance for the na?ve question. I have large matrices that I want to plot. I currently use color2D.matplot. However, these matrices contain many values of no interest (i.e. where there is no data, the figure -999 is automatically displayed). Is there any way of removing these from the matrices to be plotted by matplot? An obvious possibility is setting them all to 0, but that
2011 Aug 05
3
plotting many unique colors with categorical data
Hi- I am trying to plot a matrix of categorical values across time using
color to represent each individual factor. For example:
1982 1983 1984 1985 1986 1987
1 19 19 68 68 19 19 68
2 68 68 19 19 68 68 19
3 26 26 34 34 26 26 26
4 57 34 57 57 34 57 34
5 34 57 26 26 57 34 57
6 28 28 28 28 28 58