View source: R/simpleFragFig.R
simpleFragFig | R Documentation |
simpleFragFig
draws figure showing start- and end-sites of edges (or fragments)Simple figure showing line from start- to end-sites of edges (or fragments) defined by their start- and end-sites
simpleFragFig
draws figure showing start- and end-sites of edges (or fragments)
simpleFragFig(
frag,
fullSize = NULL,
sortByHead = TRUE,
useTit = NULL,
useCol = NULL,
displNa = TRUE,
useCex = 0.7
)
frag |
(matrix) 2 columns defining begin- and end-sites (as interger values) |
fullSize |
(integer) optional max size used for figure (x-axis) |
sortByHead |
(logical) sort by begin-sites (if |
useTit |
(character) custom title |
useCol |
(character) specify colors, if numeric vector will be onsidered as score values |
displNa |
(character) display names of edges (figure may get crowded) |
useCex |
(numeric) expansion factor, see also |
matrix with mean values
buildTree
, countSameStartEnd
, contribToContigPerFrag
,
frag2 <- cbind(beg=c(2,3,7,13,13,15,7,9,7, 3,7,5,7,3),end=c(6,12,8,18,20,20,19,12,12, 4,12,7,12,4))
rownames(frag2) <- c("A","E","B","C","D","F","H","G","I", "J","K","L","M","N")
simpleFragFig(frag2,fullSize=21,sortByHead=TRUE)
buildTree(frag2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.