Question:
Opened this issue · 0 comments
iagogv3 commented
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))))
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!