Thanks,
Saurav
Saurav Pathak [Wed, Jan 24, 2007 at 04:37:20PM -0500]:
+ Hi,
+
+ I need some suggestion on how I could modify the color on some
+ rectangle that I have created using "image".
+
+ In other words, I have a 5x5 matrix, say, m.
+
+ m <- matrix(rnor
Hi,
I need some suggestion on how I could modify the color on some
rectangle that I have created using "image".
In other words, I have a 5x5 matrix, say, m.
m <- matrix(rnorm(25), nrow=5)
I create a grid of rectangles by:
image(m)
Now I want to change the color of rectangle
hi,
i am need to plot two or more sets of data in a 3d scatterplot,
each set with different color.
i tried Rcmdr, and the 3d scatterplot facility, based on rgl. that
is what i need. but i cannot seem to code different sets of data
differently. any help will be very helpful.
i tried scatterplo
Thus spake Sundar Dorai-Raj:
+ R> plot(x=1:26,y=rep(0:1,13),type="n")
+ R> text(x=1:26,y=0.5,labels=letters,col=terrain.colors(26))
now i get it. what i am doing now is:
R> mycol <- cls
R> mycol[mycol==0] <- "red"
R> mycol[mycol==1] <- "blue"
R> mycol[mycol==2] <- "green"
R> plot(x, y, typ
hi all,
i am trying to make multi-color plots. that is, i generally use,
plot(x, y, type="n")
text(x, y, labels=class)
here, the vector class denotes the class of each point. there are
usually 3-4 classes of points. how may i display the different
classes in different colors?
hi,
i think this is a basic question, but i did not find any
documentation.
i have a file, helloworld.R, which has
helloworld <- function() {
cat("Hello World\n")
}
how may i load this file in R so that i may say at the prompt:
> helloworld()
i am not yet ready to write a package.
thanks,
Thanks to all who have provided me with valuable suggestions. I am
forging ahead now, and am beginning to enjoy R.
Thanks,
Saurav
Thus spake Saurav Pathak:
+ Hi,
+
+ I am trying to plot densities given on a two dimensional grid. My
+ data is in the an external file, and is arranged
Hi,
I am trying to plot densities given on a two dimensional grid. My
data is in the an external file, and is arranged in three columns:
x, y, density
how may i get a plot of this? i would like to get (1) a three
dimensional plot and (2) a color coded two dimensional plot.
I have tried using
hi,
i have just begun using R, so please bear with me.
i am trying to use cmdscale and display the result. i read the data
using read.table(), calculate the proximity matrix using dist() and
the display the result using the cmdscale(). this is very fine.
in addition, i want the display to dist