Sunday, March 15, 2015

Plots

1. plot (vectorname1, vectorname2)
2. plot (vectorname1, vectorname2, type="l") - converts plot into line instead of dots
3. plot (vectorname1, vectorname2, type="l", col = "red") - red color
4. lines (vectorname1, vectorname2) - add lines to already existing plot
5. abline (v="vertical line point", lwd="width of line")
6. plot (vectorname1, vectorname2, type="l", col = "red", ylim=c(0,210)) - make the y-axis range from 0 to 210

No comments:

Post a Comment