2016-07-05 42 views
0

我正在生产一些相当大的地块(约100个条形图的网格)。我使用verticallayout默认为fluid = TRUE。我有大小设置在我的服务器功能
output$hist7 <- renderPlot({ #actual plot excluded though any will do }, height=1000, width=800)闪亮的大地块重叠

当我尝试把这个图下方的文字与h1("text here"), “这里的文字”在hist7中旬结束。这个问题不会发生在我没有设置大小的情节中,这是唯一足够大的情节,因此我必须设置一个尺寸以防止闪亮缩放。

回答

-2

诀窍是指定相同的情节大小在用户界面:plotOutput("hist6", height=1000, width=800)

1

的修复应该是

ui.R

plotOutput(outputId = 'plot2', width = "700px", height = "600px") 

server.R

output$plot2 <- renderPlot({ 
    p <- ggplot(...) + geom_bar(stat="identity", ...) 
    p 
    }, width = 700, height = 600)