Learn R Programming

wrMisc (version 2.1.1)

simpleFragFig: Simple Figure Showing Line From Start- To End-Sites Of Edges (Or Fragments) Defined By Their Start- And End-Sites This function draws av 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

This function draws av 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
)

Value

This function returns a plot only

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

See Also

buildTree, countSameStartEnd, contribToContigPerFrag,

Examples

Run this code
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)

Run the code above in your browser using DataLab