I have the following example
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")
In the docs of the element_line()
function it is not specified which unit the size
attribute has. But when I open the produced pdf in Illustrator the axis lines are shown as 1.07 pt lines.
So... what is the unit of the size
attribute and how can I achieve that the output has a line width of 0.5 pt?
Thanks