Skip to content
Prev 1547 / 7420 Next

assign unique pch characters to a string of rows

Hello,
Sometimes I have used a named vector of pch such as:
pch.vec <- c('june_2728'=1,'june_2829'=6, 
'june_29'=8,'july_01'=15,'july_14' =17)

and, suposing that these dates are stored in a vector called date, then 
use them as follows:

plot(data$sarp_avg ~data$cstar_avg, xlim=c(0,3), ylim=c(0,3.5), xlab="CSTAR LAI", ylab="SARP LAI", main="PISTACHIOS JUNE 27- JULY 14",
pch=pch.vec[date])

(a quick answer with no checking, use with caution!)




Al 30/09/2010 22:53, En/na jenna martin ha escrit: