设置GGR中绘图的宽度

设置GGR中绘图的宽度,r,ggplot2,shiny,R,Ggplot2,Shiny,我有一个阴谋 gg<-ggplot(bigDF, aes(x=time, y=price)) + geom_line() + geom_point(aes(shape = as.factor(ShapeType), size = as.factor(PointSize), colour = PointColor)) + scale_color_manual(values = level

我有一个阴谋

   gg<-ggplot(bigDF, aes(x=time, y=price)) + geom_line() + 
     geom_point(aes(shape = as.factor(ShapeType),
                    size = as.factor(PointSize), 
                   colour = PointColor)) +
    scale_color_manual(values = levels(as.factor(bigDF$PointColor)) ) +
    ggtitle("trades") +
    scale_shape_identity(guide="none") 
但我有一个错误:

Error in uiOutput("plots", height = 500, width = 800) : 
  unused arguments (height = 500, width = 800)

谢谢。

您需要指定正在使用的图形设备。如果这是用于交互式设备,那么这在很大程度上取决于您未说明的操作系统。我使用的是shiny,所以它是chrome上的一个web应用程序。然后它看起来是重复的:我在so上的搜索策略是[r][shiny]宽度。。。你的是什么?我应该说得更具体些。我正在使用uiOutput,由于uiOutput没有宽度参数,因此出现上述错误。我们需要查看应用程序的完整代码,但您需要在uiOutput代码中设置宽度。例如,只要有plotOutput,就只需将width=参数设置为大约600px。
Error in uiOutput("plots", height = 500, width = 800) : 
  unused arguments (height = 500, width = 800)