This was originally a bug report issue but I was able to edit the source code and fix it myself, but I couldnt submit a pull request so I attached what I wrote
Problem:
base_size does not work
When increasing base_size it actually shrinks the plot, but does not change the text size
Also, when edited the source code i changed size argument in element_line() to linewidth as using size is deprecated as of ggplot2 3.4.0 - as the warning states.
Changes I made:
From Google, I found the Points to MM coefficient and set it within the function to be 0.352777778.
-I then re-coded everywhere where it said element_text(size = 9,...) to be size = base_size and re-coded plot.title() to size = rel(1.5555) which corresponds to the original decision (base size = 9, title = 14).
I did not change axis.title that is set to blank, although I would suggest to not ommit axis labels as a default.
This was originally a bug report issue but I was able to edit the source code and fix it myself, but I couldnt submit a pull request so I attached what I wrote
Problem:
base_size
does not workbase_size
it actually shrinks the plot, but does not change the text sizesize
argument inelement_line()
tolinewidth
as usingsize
is deprecated as of ggplot2 3.4.0 - as the warning states.Changes I made:
element_text(size = 9,...)
to besize = base_size
and re-codedplot.title()
tosize = rel(1.5555)
which corresponds to the original decision (base size = 9, title = 14).I did not change
axis.title
that is set to blank, although I would suggest to not ommit axis labels as a default.My corrected (and tested) code: