删除Shiny app中的mainPanel区域(Remove mainPanel area in Shiny app)

编程入门 行业动态 更新时间:2024-10-07 16:15:14
删除Shiny app中的mainPanel区域(Remove mainPanel area in Shiny app)

是否可以从Shiny应用程序中删除mainPanel? 我的意思是,如果我想要一个大的sidePanel(没有任何mainPanel区域),我应该怎么做? 我试着简单地写:

mainPanel()

但它不起作用(它只是清空该区域......)。

有什么建议么?

Is it possible to remove a mainPanel from a Shiny app? I mean, if I want a big sidePanel (without any mainPanel area), how should I do it? I have tried simply to write:

mainPanel()

but it doens't work (it just empties the area...).

Any suggestions?

最满意答案

我想象一下为什么你会想要这个:)你能告诉我们你打算如何使用这个应用程序吗? 一些选择:

您可以在ui.R中使用basicPage而不是pageWithSidebar

这里讨论的Shiny还有一些(相对)新的布局功能。 你需要使用Shiny 0.8.0.99:

install.packages( 'devtools'); 库(devtools); install_github( '光泽', 'rstudio')

I am trying to imagine why you would want this :) Can you tell us how you plan to use the app? Some options:

You could use basicPage instead of pageWithSidebar in ui.R

There are also some (relatively) new layout features in Shiny discussed here. You would need to use Shiny 0.8.0.99:

install.packages('devtools'); library(devtools); install_github('shiny','rstudio')

更多推荐

本文发布于:2023-08-07 11:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464054.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区域   app   Shiny   mainPanel   area

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!