RE: Perfecting Pie Charts in R🥧- ggplot Tutorial 11

avatar

You are viewing a single comment's thread:

Thank you, for this post, I didn't knew about theme_void() I think I will use it from now on.
I got a question, the hjust = 0.5 is the code that put the title in top center positions I guess, but what it means the vjust = 0.5 in geom_text().
I mean I imagine is what puts te labels inside the pie sections. But does it work vjust in that particular case!
Thanks
$wine



0
0
0.000
2 comments
avatar

Yeah, you're absolutely right. The hjust is the horizontal justification for the plot title. It is a little confusing why the geom_text would use vjust for the labels, but I think it is because a "pie chart" in ggplot is really just a transformed bar chart. So, sometimes things get weird as far as what is vertical and what is horizontal.

0
0
0.000
avatar

thank you! Pie charts with ggplot are possibly te most difficult data visualization tool I have ever used.

0
0
0.000