Library: | plot |
See also: | createdisplay show plot |
Quantlet: | line | |
Description: | convenient function for plotting results. Similar to plot but draws lines connecting the points. |
Usage: | line (x1, {x2, x3, x4, x5}) | |
Input: | ||
x1 | n x 2 or n x 3 matrix, contains the line coordinates to be plotted | |
x2 - x5 | optional, further lines to be plotted |
library("plot") line(1:10~(1:10)^2)
line is shown in the display plotdisplay
library("plot") line(1:10~(1:10)^2) t=(1:20~(1:20)^1.5) adddata(plotdisplay, 1, 1, setmask(t, "points", "line", "thin"))
new line is shown in the display plotdisplay together with previously existing one