I have tried to find out how to choose the symbols used for the factorial parameter in a case like this:
plot(data.3$age,data.3$tl,pch=c(data.3$mu),col=c(data.3$mu),
cex=1.5,cex.lab=1.3,cex.axis=1.5,las=1,bty="n",xlab="Age (years)",
ylab="Male Total Length (mm)",ylim=c(0,780),xlim=c(0,20))
I have used pch=as.numeric(factor)
but I want to be able to choose the symbols myself because I find the default ones quite difficult to distinguish from each other.
I guess it's fairly simple but I have really tried to find out how to do this.
Two answers, the choice of which depends on how your factor levels are set up:
First, if your factor levels start at 1, and are sequential after that (so factors levels are 1,2,3,4 in the example below):
Second, if your factor levels are not sequential (say you have subsetted a larger data set, with 7 factors, but you are only interested in plotting 4 of them):