I read online that the size of the fonts in a plot plotted with ggplot2
is relative to the base_size
specified in the theme()
.
I also found that the size of the specific elements can be modified by doing something like:
theme(axis.title.y = element_text(size = rel(1.5) )
I am using the theme_bw()
and would like all of the text in my plot: the labels of the axis, the title of the legend, the items in the legend, the breaks in the axis, to have the same font size. How can this be done?
EDIT:
I (almost) achieve what I want by using the theme_tufte()
as suggester by @lawyeR.
g + theme_tufte() + theme(axis.rect=element_line() )
gives me a plot with x and y axis drawn as lines. However I would like to have the plot where x and y axis form a box.
How can I draw a box for the x and y axis?