plotCoef {mseq} | R Documentation |
Plot the coefficients of Poisson linear model.
plotCoef(data.glm, llen, rlen)
data.glm |
the glm model trained by iterGlm |
llen |
the number of nucleotides before the first nucleotide of a read, which we consider as surrounding sequence |
rlen |
the number of nucleotides in and after the first nucleotide of a read, which we consider as surrounding sequence |
No returned value. Will generate a plot.
# read and expand the data data(g1_part) # for real data, please use read.csv, like g1 <- read.csv("g1.csv") data <- expData(g1_part, 2, 3) data.glm <- iterGlm(data) pdf("plot_coef.pdf") plotCoef(data.glm, 2, 3) dev.off()