R shiny mainPanel display style and font

前端 未结 3 865
攒了一身酷
攒了一身酷 2021-01-31 10:16

I\'m learning shiny apps and have some basic questions about tweaking the layout, particularly style and font. I\'d be grateful for pointers or explicit answers, thanks!

3条回答
  •  情书的邮戳
    2021-01-31 10:54

    This is a really old post, but for posterity: you can just put css in your mainPanel() call. If you want a fixed-position plot in the mainPanel in a sidebar layout:

    sidebarLayout(
         sidebarPanel(), 
         mainPanel(style="position:fixed;margin-left:32vw;",
              plotOutput("plot")
         )
    )
    

提交回复
热议问题