我有以下例子。
在
library(ggplot2)
library(ggthemes)
ggplot(mtcars) +
geom_point(aes(x = wt, y = mpg, colour=factor(gear))) +
facet_wrap(~am) +
ggtitle("Title") +
theme(
axis.line.x = element_line(colour = "black", size = 0.5, linetype = "solid"),
axis.line.y = element_line(colour = "black", size = 0.5, linetype = "solid")
)
ggsave(filename = "~/Desktop/test.pdf")
在
element_line()
函数的文档中没有指定size
属性使用的单位。但是当我在Illustrator中打开生成的pdf文件时,坐标轴线显示为1.07pt的线条。
那么,size
属性的单位是什么,如何使输出线宽为0.5pt?
谢谢