Centering a plot within a fluidRow in Shiny

前端 未结 2 761
谎友^
谎友^ 2021-02-05 03:58

I have a fluidRow with a plot rendered in one of the columns. I would like to know how to center the plot when I have manually specified the plot width via the renderPlot({crea

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 04:43

    align="center" can be included within the column expression (not within plotOutput though). e.g.

    fluidRow(
      column(8, align="center",
        plotOutput('plot1')
      )
    )
    

提交回复
热议问题