虽然可以使用ggplotify::as.ggplot将gtable转换为ggplot,但输出与原始gtable不同。例如:p <- ggplot(mtcars, aes(wt, mpg)) + geom_point()p_new + theme(aspect.ratio = 2) # different figure shape from the origin one
我如何才能将gtabl
R中的gWidgets2包中的gtable小部件在单击新值时返回先前选定的值。如果使用键盘箭头选择一个值,然后输入以激活当前选择,则返回。这对我来说是出乎意料的行为。# Create the example (adopted from the gtable example)g <- gvbox(cont=w)
tbl <- gtable(mtcars, cont=g, expand=TRUE,