【发布时间】:2016-07-12 12:49:17
【问题描述】:
我想在ggplot2 labeller 中加入摄氏度符号。下面给出了 MWE 及其输出:
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")))
但是,当在knitr 中使用dev="tikz" 选项时,相同的策略不起作用。
【问题讨论】:
标签: r ggplot2 knitr tikz tikzdevice