| add_smart_legend | R Documentation |
Add smart legend to a tree plot
add_smart_legend(p, colors, rank_name, position, nrow, ncol)
p |
ggplot object |
colors |
Named color vector |
rank_name |
Display name for the rank |
position |
Position: cardinal direction or length-2 numeric vector |
nrow |
User-specified rows |
ncol |
User-specified columns |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.