简体   繁体   English

ggplot2中的许多方面的方面包装

[英]Facet wrap for many facets in ggplot2

I'm trying to draw individual plots for many (100+) cases, but facet_wrap squeezes them together to an extent where they are unreadable (see image). 我正在尝试绘制许多(100+)种情况的单个图,但是facet_wrap会将它们挤压到一定程度,以至于它们不可读(请参见图片)。 How do I adjust facet_wrap to view many plots (perhaps by scrolling down the output, since they won't fit on one screen)? 我如何调整facet_wrap以查看许多图(可能由于向下滚动输出,因为它们无法在一个屏幕上显示)? There are enough cases such that full-screen doesn't help. 在足够多的情况下,全屏无济于事。 Adjusting the "ncol" argument in facet_wrap doesn't seem to change much either. 调整facet_wrap中的“ ncol”参数似乎也没有太大变化。

m <- ggplot(data, aes(x = time, y = perf))
m + geom_line() + facet_wrap(~ subject)

facet_wrap output facet_wrap输出

The plot will fit into the plot region in Rstudio. 该图将适合Rstudio中的图区域。 But you can save it to disk to make a large picture so that you can scroll. 但是您可以将其保存到磁盘上以制作大图片,以便滚动。 Try ggsave : 尝试ggsave

ggsave('Mydata.jpeg1', width =4, height = 400, units='cm)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM