Description Usage Arguments Value Author(s)
View source: R/plotAlignments.R
Takes a matrix of characters, x and y locations and colours, creates a ggplot geom_tile plot with tiles labelled by the characters.
1 2 | makeAlignmentTilePlot(m, ref, xlab, plot.text.size, axis.text.size, xtick.labs,
xtick.breaks, tile.height)
|
m |
A matrix with column headings Var1: y location, Var2: x location, cols: tile fill colour, isref: transparency value text_cols: text colour |
ref |
The reference sequence, only used for checking the number of x-tick labels when x-tick breaks are not supplied |
xlab |
Label for the x axis |
plot.text.size |
Size for text within plot |
axis.text.size |
Size for text on axes |
xtick.labs |
x axis labels |
xtick.breaks |
Locations of x labels |
tile.height |
Controls whitespace between tiles |
A ggplot object
Helen Lindsay
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.