Relative size and scaling of points vs. axis text

Viewed 167

My question is related to the size of geometries and texts (in axes of a chart). I'm trying to export a chart with the size of the font must be approximately to 12 points, so I've declared size = 12/.pt in element_text(). To exemplify, I wrote the code:

library(ggplot2)

chart = ggplot(diamonds)+
  geom_point(aes(x, price), size = 1, shape = "circle open")+
  theme(axis.title = element_text(size = 12/.pt),
        axis.text = element_text(size = 12/.pt))

chart

chart

Since ggplot2 works with millimeters in its units, if I understod, declaring geom_point(size = 1), and theme(axis.title / axis.text = element_text(size = 12/.pt)), the size of the points should must be smaller than the text, right? Why is this not the case?

0 Answers
Related