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

Question: #66

Open
iago-pssjd opened this issue May 8, 2023 · 0 comments
Open

Question: #66

iago-pssjd opened this issue May 8, 2023 · 0 comments

Comments

@iago-pssjd
Copy link

iago-pssjd commented May 8, 2023

Hi!

First of all, thanks for your package. I have just found its exstence right now, when I was looking for "its" existence a couple of years ago in this question at SO: https://stackoverflow.com/questions/66736582/how-to-make-a-percent-stacked-barplot-of-interactions-with-ggplot

I have found I can get something similar to what I was asking by means of

ggplot(mtcars) + geom_mosaic(aes(x = product(am, vs), fill = am))+ geom_mosaic_text(aes(x = product(am, vs), 
                       label = after_stat(round(100*.wt/sum(.wt),2))))

image

But then I ask again my question. Is it possible to get the four areas in such plot stacked in one column, so, for example, x would relate to am and y or fill would relate to the interactions with vs?

Thanks!

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

1 participant