Description Usage Arguments Value Author(s) Examples
Plot the values of a segmentation against chromosome position.
1 2 |
segs |
list of segmentation data.frames. Each data.frame must have ‘start’ and ‘end’ as the column names of the limits of the segmentations. |
valId |
name of the column with the segmentation value to be plotted (must be the same in all data.frames) |
col |
colors for the segmentation (1 per element of the list of segmentations) |
lty |
lty for the lines |
lwd |
lwd for the lines |
xlim |
x limits |
ylim |
y limits |
xlab |
The label for the x-axis |
ylab |
The label for the y-axis |
... |
passed to initial plotting command |
returns invisibly the col and lty after any processing done, useful for legends.
Elizabeth Purdom
1 2 3 4 5 6 7 8 9 10 | data(mutData)
segData<-data.frame(chromosome="17",start=c(0,1.8e7+1),
end=c(1.8e7,max(mutData$position)),val=c(2,3))
cp1<-data.frame(chromosome="17",start=c(0,1.8e7+1),
end=c(1.8e7,max(mutData$position)),val=c(1,1))
cp2<-data.frame(chromosome="17",start=c(0,1.8e7+1),
end=c(1.8e7,max(mutData$position)),val=c(.9,2))
out<-plotSegmentation(list(total=segData,cp1=cp1,cp2=cp2),
valId="val",lwd=2,ylab="Segmentation Value")
legend("topright",names(out),fill=out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.