語法:
plot(x, y, ...)
x,y分別是兩個向量,x為橫軸坐標,y為縱軸坐標
其他參數:
type=
"p" for points, 散點圖 默認
"l" for lines, 線圖
"b" for both, 描點連線,點與線不相連
"c" for the lines part alone of "b", 線圖,點空白
"o" for both ‘overplotted’, 描點連線,線穿過點
"h" for ‘histogram’ like (or ‘high-density’) vertical lines, 從0出發的垂線
"s" for stair steps, 階梯圖
"S" for other steps, see ‘Details’ below,
"n" for no plotting. 空白圖,只生成適合的橫縱坐標軸
main=" " 圖名
sub=" " 在圖形底部加上副名
xlab = " " 橫坐標軸名
ylab = " " 縱坐標軸名
xaxt = "n" 隱藏橫坐標軸
yaxt = "n" 隱藏縱坐標軸
pch = 1,2,3... 對應不同的點的形狀

col = " " 點或者線的顏色
若需要在一個畫好的圖上加點,使用函數 point()
