view_logo | R Documentation |
This function provides the plotting capabilities of view_motifs()
without
requiring universalmotif
-class objects. Instead, it takes a numeric matrix
with row names as input. Additionally, columns can be of any height and
letters can be a mix of different character lengths.
view_logo(x, fontDF = NULL, fill = "black", colour.scheme = NULL,
min.height = 0.01, x.spacer = 0.04, y.spacer = 0.01,
sort.positions = FALSE, sort.positions.decreasing = TRUE,
fit.to.height = NULL)
x |
A numeric matrix with row names. The row names can be a mix of different character lengths. |
fontDF |
|
fill |
|
colour.scheme |
|
min.height |
|
x.spacer |
|
y.spacer |
|
sort.positions |
|
sort.positions.decreasing |
|
fit.to.height |
|
A ggplot
object. If you wish to plot the data yourself from
polygon paths, access them using $data
on the output object. The
theme theme_void()
is applied to the object; apply your own theme
or adjust specific plot parameters with theme()
to change this.
Benjamin Jean-Marie Tremblay, benjamin.tremblay@uwaterloo.ca
view_motifs()
## Feel free to mix and match row name character lengths and column sums.
data(examplemotif)
toplot <- examplemotif["motif"]
toplot[4] <- 2
toplot[20] <- -0.5
rownames(toplot)[1] <- "AA"
view_logo(toplot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.