points.Sim_data: Add points corresponding to the original observations on top...

Usage Arguments Examples

Usage

1
points.Sim_data(x, index = NULL, ...)

Arguments

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

...

Examples

 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)
  }
  }
}

lkshrsch/gLVInterNetworks documentation built on May 21, 2019, 7:33 a.m.