简体   繁体   中英

R grid.table - table keeps plotting on top of other plots

I'm trying to use grid.table for the first time.
The tables keep plotting on top of what ever is in the plotting window. In other words, it does not create a new Plot display, it just added it onto what ever is there already.
Is there a way to force it to use a new plotting window?

library(grid)
d <- head(iris[,1:3])
plot(d)
grid.table(d)

在此处输入图片说明 library(gridExtra)

You can use grid.newpage() to get a new page in your panel.

library(grid)
d <- head(iris[,1:3])
plot(d)
library(gridExtra)

grid.newpage()

grid.table(d)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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