I want to put degree Celsius symbol in ggplot2
labeller
. MWE is given below with its output:
library(ggplot2)
ggplot(data=mtcars, mapping = aes(x=drat, y=mpg)) + geom_point() +
facet_wrap(facets = ~cyl, labeller = as_labeller(c(`4` = "4 °C",`6` = "6 °C", `8` = "8 °C")))
However the same strategy does not work when dev="tikz"
option is used in knitr
.