Skip to content

plot with diffrent colour and plotting symbols

4 messages · Diego Culattoni, Henrique Dallazuanna, PIKAL Petr +1 more

#
Perhaps:

cols <- colors()[1:length(unique(apply(Var[3:4], 1, paste, collapse="")))*50]
plot(tt, var2, type='p', col=cols, pch=16)
On 19/03/2008, Diego Culattoni <diegoculattoni at yahoo.com> wrote:
I think is this what you want:
 Var <- Var[order(Var$var1),]

  
    
#
Hi

r-help-bounces at r-project.org napsal dne 19.03.2008 14:18:39:
symbols
Like

plot(tt,var2,xaxt = "n", pch=var3+1, col=var4)

see ?par for customising plot parameters.
Beware also that var3 is a vector and also a part of your Var data frame 
which is sorted differently. So this direct call to var3 and var4 
reference var3 and var4 vectors not columns from data frame.

Regards
Petr
____________________________________________________________________________________
http://www.R-project.org/posting-guide.html
#
?points

Does this do what you wanted?
-------------------------------------------------
plot(tt, var2,xaxt ="n", ylim=c(min(Var[1:3]),
max(Var[1:3])))
axis(1,1:length(unique(var1)), labelname)

points(tt, var3, col="green")
points(tt,var4, col= "red")
---------------------------------------------------
--- Diego Culattoni <diegoculattoni at yahoo.com> wrote:

            
____________________________________________________________________________________
[[elided trailing spam]]