Displaying 1 result from an estimated 1 matches for "strat_nam".
Did you mean:
strat_name
2010 Oct 07
2
text/mtext axis labels on graphs
...ryone
I have problem with axis labels on graphs, I have my code as below:
plot(0,0,xlim=c(1,ncol(PA)),ylim=c(1,nrow(PA)),main="Stratigraphic
Range",xlab="Time
Bins",ylab="Taxa",cex.axis=1.5,cex.lab=2,cex.main=2.5,mgp=c(5,1.5,0),xaxt="n")
text(1:(length(strat_name)), y= 0, adj=1,
srt=45,labels=strat_name,xpd=TRUE, cex=1) #adds text to x axis giving
the strat names
abline(v=(1:ncol(PA))+.5,col="grey",lty=3)
cl <- rep(1,nrow(PA))
cl[DistM$kill] <- 2
for (i in 1:nrow(PA)) segments(min(which(PA[i,]==1))-.5,i,
max(which(PA[i,]==1))+.5,i,l...