plot_JSD_logo | R Documentation |
Calculate and plot the Jensen-Shannon divergence between 2 sets of sequences contained in 2 data.frames
plot_JSD_logo(
df1,
df2,
ID_col,
alphabet,
y_lims = c(-0.5, 0.5),
max_JS_div_thrshld,
anno_width = 0.75,
highlight_colour = "grey74",
axis_txt_size = 10,
ttl_txt = NULL,
...
)
df1 |
A data.frame with a column called |
df2 |
A different data.frame with the same properties as |
ID_col |
A character specifying the column name in |
alphabet |
A character vector containing the alphabet letters present in |
y_lims |
A numeric vector of length 2 specifying the Y-axis min and max value. Default |
max_JS_div_thrshld |
The maximal absolute JS divergence threshold to consider a letter position to be highlighted by a vertical bar in the plot. |
anno_width |
A small number that defines how wide the vertical bar should be. Default |
highlight_colour |
A colour name to fill the letter highlighting rectangle. Default |
axis_txt_size |
A number specifying the size of the axis text in the plot. Default 10. |
ttl_txt |
Some text in quotes specifying the plot title. |
... |
Advanced parameters passed to renumber_logo_seq_breaks. |
A ggplot sequence logo with the Jensen-Shannon divergence on the Y-axis.
plot_JSD_logo(df1 = clade1, df2 = clade2f, ID_col = 'Species',
max_JS_div_thrshld = 0.2, anno_width = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.