【发布时间】:2019-02-14 08:38:34
【问题描述】:
是否可以像 ggplot2 输出一样分配plot() 输出?
例如
my_plot <- plot(c(1,2,3))
my_plot
# [1] NULL
以上不起作用,但以下(对于ggplot)起作用:
library(ggplot2)
my_ggplot <- ggplot(mapping = aes(x = 1:3, y = c(1,2,3))) + geom_point()
# Running this will show the plot
my_ggplot
【问题讨论】:
-
@StéphaneLaurent 你是对的,这是同一个问题。我应该删除它吗?
标签: r