R/plot.layerBindingHistory.R

Defines functions plot.layerBindingHistory

plot.layerBindingHistory <- function(modLayerSet ) {

  coverage.cols <-  sort(grep("Coverage", names(modLayerSet$history), value=T))
  blockCount.cols <-  sort(grep("nBlocks", names(modLayerSet$history), value=T))
  par(mfrow=c(1,2))
  matplot(1:nrow(modLayerSet$history),modLayerSet$history[,coverage.cols], ylab="Coverage", xlab="Binding factor")
  matplot(1:nrow(modLayerSet$history),modLayerSet$history[,blockCount.cols], ylab="Number of blocks", xlab="Binding factor")

}

#plot.layerBindingHistory(modLayerSet)
davetgerrard/GenomicLayers documentation built on April 28, 2024, 2:53 p.m.