R/plot.ProDenICA.R

Defines functions plot.ProDenICA

plot.ProDenICA=function(x,...){
  null.check=is.null(x$density[[1]])
  if(null.check){
    warning("Nothing to plot; only implemented with 'Gpois'")
  }
  else{
    dens=x$density
    for(i in seq(dens)){
      plot(dens[[i]],xlab=paste("S",i,sep=""),ylab=paste("Density(S",i,")",sep=""),main=paste("Source Component",i),type="l")
    }
  }
  invisible()
    
}
      
      

Try the ProDenICA package in your browser

Any scripts or data that you put into this service are public.

ProDenICA documentation built on March 18, 2022, 6:28 p.m.