italicize.plot: italicize.plot

Description Usage Arguments References Examples

View source: R/strings.r

Description

italicize everything that matches the 'string' in a given plot 'p'

Usage

1
italicize.plot(p, string)

Arguments

p

a ggplot object

string

string or vector of strings to replace

References

https://github.com/GuangchuangYu/yyplot/blob/master/R/set_font.R

Examples

1
2
3
4
5
6
library(ggessentials)
data(iris)
p <- ggplot(iris, aes(x=Species, y=Sepal.Width, color=Species)) +
  geom_boxplot()
g <- italicize.plot(p, c('setosa','versicolor'))
plot(g)

lch14forever/ggessentials documentation built on Sept. 1, 2021, 7:23 a.m.