+1 vote
in Programming Languages by (37.8k points)
I want to change the text size of the title of the plot created using ggplot. The default size is big for my plot. How can I do it?

1 Answer

+4 votes
by (176k points)
selected by
 
Best answer

You can use the theme() with the argument "plot.title".

In the following example, the title size is set to 12.

plt <- ggplot(df, aes(x=x, y=y,...)) +

theme(plot.title = element_text(size=12))

Related questions

+3 votes
1 answer
+2 votes
1 answer
+3 votes
1 answer
+5 votes
1 answer

...