Thank you for the reply. Thanks for the reminder about scaling to the output device. However, I feel like I am still not understanding the relationships between
linewidth= in points, lines, and text. I thought my lack of understanding was related only to
linewidth=, but it seems like it may be a larger misunderstanding. I will try to ask and demonstrate my question in a different way.
In this tidyverse documentation about aesthetic specifications the following statements are made:
- re: lines (under "Linewidth" subheading.
Due to a historical error, the unit of linewidth is roughly 0.75 mm. Making it exactly 1 mm
would change a very large number of existing plots, so we’re stuck with this mistake.
- re: points (under "Colour and Fill" subheading)
The size of the filled part is controlled by size, the size of the stroke is controlled by
stroke. Each is measured in mm, and the total size of the point is the sum of the two.
- re: text (under "Font size" subheading)
The size of text is measured in mm. This is unusual, but makes the size of text consistent
with the size of lines and points.
Given these it seems that all three are measured in mm. [Side note: except when
size= is used in
element_text() where the units are pts.] My interpretation of this language though is that for the same
linewidth= that text and points (
stroke=) should be the same size, but lines will be smaller due to the "historical error."
However, my experiment below does not support this.
It seems that ...
- My text and line are the same height ... I expected the line to be smaller.
- My blue and red point is larger than the line and the text ... I expected it to be the same as the text.
- My orange point (just
size=) and green point (just
stroke=) are note the same size ... I expected them to be equal given that
stroke= gives the "size" of the point.
- My orange and green point equals the orange point (not sure any more what I expected here).
Thoughts on what I am missing here? Thanks.