simpleFragFig: Simple figure showing line from start- to end-sites of edges...

View source: R/simpleFragFig.R

simpleFragFigR Documentation

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)

Description

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)

Usage

simpleFragFig(
  frag,
  fullSize = NULL,
  sortByHead = TRUE,
  useTit = NULL,
  useCol = NULL,
  displNa = TRUE,
  useCex = 0.7
)

Arguments

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 TRUE) or sort by end-sites

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 par

Value

matrix with mean values

See Also

buildTree, countSameStartEnd, contribToContigPerFrag,

Examples

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)

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.