我应该如何调整ggplot2中的宽度和高度?

How should I adjust the width and height in ggplot2?

剧情好像挤在一起。

我应该如何扩大这样的情节:

ggsave() 保存为图片时可能会调整它们,但我会在 Jupyter notebook 中显示它。

我不知道 pr 是什么,也不知道你的颜色指数是多少,但我猜是 prime_genre.

而不是 facet_grid,试试 facet_wrap(.~prime_genre, nrow = 1)

确保在 facet_grid.~ 部分,将 groupcolor 的变量放入 pr 中。