Displaying 15 results from an estimated 15 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(...

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...

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...

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 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_...

2017 Jun 22

5

Hunting a histogram variant

I'm looking for a histogram variant in which data points are plotted as labelled rectangles 'piled up' to form a histogram. I've posted an example at https://www.dropbox.com/s/ozi8bhdn5kqaufm/labelled_histogram.png?dl=0
It seems to have a long pedigree, as I see it (as in this example) in documents going back beyond the '80s. But I've not seen it in

2011 Apr 22

1

Dual colour ramps based on pos/neg values

Hi Everyone:
I'm going a little nuts here and am hoping someone might have some
ideas to help out. Here is my problem:
I am using the calendarHeatMap function
(http://blog.revolutionanalytics.com/2009/11/charting-time-series-as-calendar-heat-maps-in-r.html)
to plot some values of percentages above or below a watermark. In
other words, I have a time series whose data can

2013 Oct 21

2

plot correlation matrix

Hi all,
I am having 4 vectors like
Data: num [1:4, 1:32] -82.8 -81.8 -75.5 -107.6 -87.6 ...
and I want to calculate the correlation between those.
Is there a graphical way in R to plot the correlations or not?
I would like to thank you in advance for your help
Regards
Alex
[[alternative HTML version deleted]]

2013 Nov 01

1

Package(s) for making waffle plot-like figures?

Dear all,
I am trying to make a series of waffle plot-like figures for my data to
visualize the ratios of amino acid residues at each position. For each one
of 37 positions, there may be one to four different amino acid residues. So
the data consist of the positions, what residues are there, and the ratios
of residues. The ratios of residues at a position add up to 100, or close
to 100 (more on

2008 Sep 25

2

levelplot/heatmap question

Hello!
I have data containing a large number of probabilities (about 60) of nonzero
coefficients to predict 10 different independent variables (in 10 different
BMA models). i've arranged these probabilities in a matrix like so:
(IV1) (IV2) (IV3) ...
p(b0) p(b0) p(b0)
p(b1) p(b1) p(b1)
p(b2) p(b2) p(b2)
...
where p(b1) for independent variable 1 is p(b1 !=

2017 Oct 12

1

Recurrence plots in R using different colours

Hello,
I am an absolutely beginner with regards to R, so forgive me for my
potentially very stupid questions.
I have been attempting to create recurrence plots using R. The data I am
using is based on a mutually exclusive and exhaustive coding scheme with
over 40 individual codes which can be assigned to 6 higher order categories.
When I carry out the usual rqa command, my plot is pretty much

2010 Feb 07

3

specifying colors in a heatmap/image -like plot

Hi,
I have searched for a solution but I failed to find an answer. I am hoping
you may be able to help me.
I have a data set where I have observations for a number of units (n =~40)
over a period of time (t =~100) and I have a variable (Z) that codes a
categorical variable for each observation. I want to produce a 2D plot where
time is on the x-axis and units are on the y-axis. Then each block

2010 Nov 15

2

rotate column names in large matrix

Dear List,
I have a large (1600*1600) matrix generated with symnum, that I am using to
eyeball the structure of a dataset.
I have abbreviated the column names with the abbr.colnames option. One way
to get an even more compact view of the matrix would be to display the
column names rotated by 90 degrees.
Any pointers on how to do this would be most useful. Any other tips for
displaying the