Description Usage Arguments Value Author(s) Examples
View source: R/edit_facet_label.R
This function is adapted from ggfun package of facet_set function
1 | edit_facet_label(label)
|
label |
the text to ba edited |
a ggplot2 pacakge with modified facet label
ZhonghuiGai
1 2 3 | install.packages("ggfun")
p <- ggplot(mtcars, aes(disp, drat)) + geom_point() + facet_wrap(~am)
p + edit_facet_label(label = c(`0` = "Zero\n p = 0.01\n(mg/L)"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.