Home > Blockchain >  How should I adjust the width and height in ggplot2?
How should I adjust the width and height in ggplot2?

Time:09-30

The plot seems like be crowded together. enter image description here

How should I widen the plot like that: enter image description here

ggsave() may adjust them when I save it as a picture, but I'm going to show it in Jupyter notebook.

CodePudding user response:

I don't know about what pr is, and what is your color index is about, but I guess that as prime_genre.

Instead of facet_grid, try facet_wrap(.~prime_genre, nrow = 1)

Make sure in .~ part of facet_grid, put the variable that group or color in your pr thing.

  • Related