[R] plot
Jacques VESLOT
jacques.veslot at cirad.fr
Fri Jan 28 12:22:49 CET 2005
if * in x1[1:50,]*x2[1:50,] means "times", try :
matplot(matrix(x1,ncol=4)*matrix(x2,ncol=4))
if * means "vs", try :
matplot(matrix(x1,ncol=4),matrix(x2,ncol=4))
-----Message d'origine-----
De : r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]De la part de NICOLAS DEIG
Envoye : vendredi 28 janvier 2005 14:23
A : r-help at stat.math.ethz.ch
Objet : [R] plot
hello,
I wonder whether there is a way to plot in R the following:
I have two arrays of dimension (200*1) say x1 and x2.
I would like to plot on the same graph x1[1:50,]*x2[1:50,] with pch=1
x1[51:100,]*x2[51:100,] with pch=2
x1[101:150,]*x2[101:150,] with pch=3
x1[151:200,]*x2[151:200,] with pch=4
is it possible with the "plot" function? Or do I have to plot
4differents graphs?
THanks in advance.
nicolas
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list