Learn R Programming

alpine (version 0.99.1)

plotRelPos: Plot relative position bias over samples

Description

Plots the smooth curves of log fragment rate over relative position.

Usage

plotRelPos(fitpar, model, col, lty, ylim, knots = c(0.25, 0.5, 0.75), bk = c(0, 1))

Arguments

fitpar
a list of the output of fitBiasModels over samples
model
the name of one of the models
col
a vector of colors
lty
a vector of line types
ylim
the y limits for the plot
knots
the knots for the spline
bk
the boundary knots for the spline

Value

plot

Examples

Run this code

# fitpar was fit using identical code
# as found in the vignette, except with
# 25 genes, and with fragment size in 80-350 bp
data(preprocessedData)
perf <- rep(1:2, each=2)
plotRelPos(fitpar, "all", col=perf)

Run the code above in your browser using DataLab