View source: R/namesToColumns.R
namesToColumns | R Documentation |
Reads a data.frame with marks' of styles
downArrow,upArrow,cM,cMLeft
positions. It separates names in columns, avoiding overlap when multiple
close names
Exceptionally this function requires the column style in the data.frame of marks' positions.
Returns a data.frame
namesToColumns( marksDf, dfChrSize, markType = c("downArrow", "upArrow",
"cMLeft", "cM"), amountofSpaces = 13, colNumber = 2, protruding = 0.2,
protrudingInt = 0.5, circularPlot = TRUE, rotation = 0.5,
defaultStyleMark = "square", orderChr = "size", halfModDown = NA,
halfModUp = NA, rotatMod = 0
)
marksDf |
data.frame with columns: |
dfChrSize |
data.frame, size of chr. Same of plot. |
markType |
character, use
|
amountofSpaces |
numeric, number of spaces for each column |
colNumber |
numeric, number of columns |
protruding |
numeric, same as plot, minimal protruding for arrow marks, equivalent to cM protruding |
protrudingInt |
numeric, spacing of columns in terms of width of chr.
percent 1 = 100%.
Defaults to |
circularPlot |
boolean, use |
rotation |
numeric, same as plot, anti-clockwise rotation, defaults to
|
defaultStyleMark |
character, if some data in column style missing
fill with this one.
Defaults to |
orderChr |
character, replaces |
halfModDown |
numeric, for circ. plots, when plotting several
chromosomes in a circular
plot, using a small value |
halfModUp |
numeric, for circ. plots, when plotting several
chromosomes in a circular
plot, using a small value |
rotatMod |
numeric, for circ. plots, when rotation != 0 (diff.),
corrects alignment of
labels. Defaults to |
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.