Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # Plot and first axis:
  2. plot(1:10,1:10,bty="n",col="red",pch=16,axes=FALSE,xlab="",ylab="")
  3. axis(2,0:11,las=1)
  4. axis(1,0:11,line=1,col="red",col.ticks="red",col.axis="red")
  5. mtext("Label 1",1,line=1,at=0.2,col="red")
  6.  
  7. # Secondary points and axis:
  8. points(rnorm(10,50,20)/10, rnorm(10,5,2),pch=16, col="blue" )
  9. axis(1,0:11,labels=0:11*10,line=3,col="blue",col.ticks="blue",col.axis="blue")
  10. mtext("Label 2",1,line=3,at=0.2,col="blue")
  11.  
  12. plot(1:10,1:10)
  13. axis(side=4, at=c(3,7), labels=c(30,70))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement