thomas-neitmann / ggcharts

Get You to Your Desired Plot Faster
https://thomas-neitmann.github.io/ggcharts/index.html
Other
287 stars 35 forks source link

Faulty theme with pyramid charts #98

Open caspercrause opened 3 years ago

caspercrause commented 3 years ago

Hey Thomas, I found a bug when creating a pyramid chart and trying to change the theme.

I have data where a bank account is debited or credited. I aggregated the data by month an tried to show the monthly inflow against the monthly outflow.

Which works as expected. image When trying to change the theme, only half of the graph is changed as shown here: image

thomas-neitmann commented 3 years ago

pyramid_chart() does not return a ggplot but a patchwork of two plots combined side-by-side. To apply a new theme to both sub-plots use & theme_ng() rather than + theme_ng().

caspercrause commented 3 years ago

You learn something every day. Thank you ! I'll remember that trick!

It changed the theme, but still does not quite give what I expected: image