plot_rudimentary_JSD_logo | R Documentation |
Quick visualisation of the Jensen-Shannon divergence
plot_rudimentary_JSD_logo(
long_df,
axis_txt_size = 10,
alphabet_palette = c(t = "forestgreen", c = "dodgerblue", g = "orange", a =
"firebrick3")
)
long_df |
A data.frame created with |
axis_txt_size |
|
alphabet_palette |
A ggplot plot
df2JSD(df1 = data_p, df2 = data_q, ID_col, alphabet, long_format = T) |>
plot_rudimentary_JSdiv_logo()
# alphabet is case sensitive, in this example the lowercase letters will be in grey.
df2JSD(df1 = df_clade1, df2 = df_clade2, ID_col = 'Species',
alphabet = c('A', 'C', 'T', 'G', 'a', 'c', 't', 'g'), long_format = T) |>
plot_rudimentary_JSD_logo(alphabet_palette = c('A' ="firebrick3", 'C' = "dodgerblue", 'T' = "forestgreen", 'G' ="orange") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.