Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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 string, name of the display
l_num integer, represents the number of a row of the display di
c_num integer, represents the number of a column of the display di
data1 n x p matrix of data with at least 2 columns
data2 optional n x p matrix of additional data with at least 2 columns

Example:
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)

Result:
The original dataset is plotted and its
knn-smoothed version is added as a line.



(C) MD*TECH Method and Data Technologies, 05.02.2006