Description Usage Arguments Value Author(s) Examples
Add a facet label to a ggplot object which only contains 1 panel
1 2 3 4 5 6 7 8 9 | add_facet(
p,
label,
fill = "#7fc97f",
color = "black",
size = 14,
face = "bold",
r = 0.25
)
|
p |
the ggplot2 object to be added |
label |
the text to be added as a facet label |
fill |
the strip background color |
color |
the color of the text |
size |
the size of the text, default size is 14 |
face |
the font face of the text |
r |
the radius of the rounded corners, a |
a ggplot2 object with a facet label
Zhonghui Gai
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.