Advertisement
otorp2

rstudio legend

Jul 7th, 2017
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. sequencea <- seq(0,6.28,by = pi/8)
  2.  
  3. plot(sin(sequencea))
  4. points(cos(sequencea),col="red",pch =2)
  5. points(tan(sequencea),col="blue",pch = 3,)
  6. legend("bottomleft",pch = c(1,2,3),legend = c("sin","cosine","tan"),col= c("black","red","blue"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement