首页 > 解决方案 > 如何增加 wordcloud R 中绘图区域的大小(边界,因为一些单词被剪切)

问题描述

我使用闪亮的仪表板和输出是在dashboardBody(框(输出

    dashboardPage(skin = "blue",
      dashboardHeader(title = "Word Cloud",titleWidth = 320),
      dashboardSidebar(tags$style(HTML(".main-sidebar{width: 320px;}")),
        sidebarMenu(
          menuItem("Type",startExpanded = TRUE,
                   selectInput("selection", "Please, Choose Type:",
                               choices = books),
                   actionButton("update", "Change"),
                   hr()

          ),
          menuItem("Frequency",startExpanded = TRUE,
                   sliderInput("freq",
                               "Please, choose Frequency:",
                               min = 100,  max = 1000, value = 20,step=50)

          ),
          menuItem("Number of Words",startExpanded = TRUE,
                   sliderInput("max",
                               "Please choose Number of Words:",
                               min = 10,  max = 300,  value = 70,step=10)

          )
        )
      ),
###My outPut

dashboardBody(
        fluidRow(
          box(width=12,height = 12,background="yellow",collapsible = TRUE,res = 300,
              plotOutput("plot")
          )
        )
      )
    )[enter image description here][1]


      [1]: https://i.stack.imgur.com/IogCV.jpg

dashboardBody(fluidRow(框(宽度=12,高度=12,背景=“黄色”,可折叠=真,res=300,plotOutput(“绘图”))

dashboardBody(fluidRow(框(宽度=12,高度=12,背景=“黄色”,可折叠=真,res=300,plotOutput(“绘图”))

如何增加 wordcloud R 中绘图区域的大小(边界,因为一些单词被剪切)

标签: rword-cloud

解决方案


推荐阅读