format axis label

33 views
Skip to first unread message

lily li

unread,
Aug 11, 2016, 2:11:36 PM8/11/16
to ggp...@googlegroups.com
Hi ggplot2 users,

I tried to change the size of y label, but when add axis.title.y = element_text(size=10) in theme(), it does not show y label at all. Before I add this line of code, it has the label. What is the problem? Thanks.

Sherif Soliman

unread,
Aug 11, 2016, 2:32:21 PM8/11/16
to ggp...@googlegroups.com

Hi Lily,

I just tried that exact code:

...
theme(axis.title.y = element_text(size = 10)) +
...

in a ggplot2 plot and it worked for me, so it's likely that something else specific to your code is the issue (or perhaps that you're not running the latest ggplot2 version).

If you're sure you have the latest stable version of ggplot2, please provide a reproducible example. That would help the list help you.

Best,

Sherif

lily li

unread,
Aug 11, 2016, 3:14:24 PM8/11/16
to Sherif Soliman, ggp...@googlegroups.com
Hi Sherif,

Thanks. It works. I used the wrong dataframe so the figure does not show up.

--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+unsubscribe@googlegroups.com
More options: http://groups.google.com/group/ggplot2

---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages