Group: | Plot Manipulation |
See also: | deletedata getdata show |
Function: | adddata | |
Description: |
Adds graphics to already plotted ones.
|
Usage: | adddata(di, l_num, c_num, data1, data2, ...) | |
Input: | ||
di | Display | |
l_num | integer, 1 ... count of lines of di | |
c_num | integer, 1 ... count of columns of di | |
data1 | data matrix with at least 2 columns |
di=createdisplay(1, 1) x=1:100 y=sin(x/20)+uniform(100, 1)/10 show(di, 1, 1, x~y) knndata=x~knn(y, 10) setmaskp(knndata, 0, 0, 0) setmaskl(knndata,(1:rows(knndata))',0,1,1) adddata(di, 1, 1, knndata)
The original dataset is plotted and then its knn-smoothed
version is added as a line.
Group: | Plot Manipulation |
See also: | deletedata getdata show |