View source: R/annotation_grob.R
| create_annotation_legend_grob | R Documentation |
This creates a grob that can be used with annotation_custom() in ggplot2. Unlike draw_legend_with_brackets(), this creates a single grob that handles its own viewport setup internally.
create_annotation_legend_grob(
labels,
colors,
comparisons = NULL,
x = 0.1,
y = 0.9,
width = 0.25,
height = NULL,
title = NULL,
text_size = 10,
text_family = "sans",
text_face = "plain",
title_size = 11,
title_face = "bold",
sig_size = 11,
sig_face = "plain",
output_width = 8,
output_height = 6,
bracket_margin = NULL
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.