jrnold / ggthemes

Additional themes, scales, and geoms for ggplot2
http://jrnold.github.io/ggthemes/
1.31k stars 229 forks source link

How to tilt the x-axis index mark in ggthemes? #92

Closed xiasummer closed 6 years ago

xiasummer commented 6 years ago

Hi, I have date as x-axis value. I like ggthemes gdocs theme. But when I use ggthemes_gdocs together with theme(axis.title.x = element_text(angle = 90)), the latter one won't take effect.

So what should I do?

tomhopper commented 6 years ago

You should provide a minimal reproducible example (https://stackoverflow.com/a/5963610) so that the rest of us can see and diagnose the problem.

On 201806 17, at 02:59, xiasummer notifications@github.com wrote:

Hi, I have date as x-axis value. I like ggthemes gdocs theme. But when I use ggthemes_gdocs together with theme(axis.title.x = element_text(angle = 90)), the latter one won't take effect.

So what should I do?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jrnold/ggthemes/issues/92, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcz7ahDA6mxpno1RxL9tQJNKZey14xOks5t9f42gaJpZM4Uqu7J.

jrnold commented 6 years ago

I'm not sure exactly what you are trying to do with this. Follow @tomhopper 's advice on a minimal reproducible example. I don't think this is a problem with the theme per se. It probably means trying different values in theme: http://ggplot2.tidyverse.org/reference/theme.html. You may also be thinking of axis.text.x as the element you want to alter.

jrnold commented 6 years ago

I'm closing this because it doesn't seem to be a bug.