edit_facet_label: This function is adapted from ggfun package of facet_set...

Description Usage Arguments Value Author(s) Examples

View source: R/edit_facet_label.R

Description

This function is adapted from ggfun package of facet_set function

Usage

1

Arguments

label

the text to ba edited

Value

a ggplot2 pacakge with modified facet label

Author(s)

ZhonghuiGai

Examples

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)"))

ZhonghuiGai/ggfacet documentation built on Dec. 18, 2021, 8:28 p.m.