Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faulty theme with pyramid charts #98

Open
caspercrause opened this issue Oct 29, 2020 · 2 comments
Open

Faulty theme with pyramid charts #98

caspercrause opened this issue Oct 29, 2020 · 2 comments

Comments

@caspercrause
Copy link

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
Copy link
Owner

thomas-neitmann commented Oct 30, 2020

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants