1 | points.Sim_data(x, index = NULL, ...)
|
x |
Object of class Sim_data |
index |
If wished to plot the original measurements of only one variable for visualization purposes, write index of variable |
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function(x, index=NULL , ...){
if(!is.null(index)){
points(x = x$obs[,1], y= x$obs[,index+1], col=index)
}else{
for(i in 1:ncol(x$obs[,-1])){
points(x = x$obs[,1], y= x$obs[,i+1], col=i)
}
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.