徽标而不是应用程序标题闪亮
Logo instead of application title Shiny
如何在 Shiny 应用中放置标题而不是标题:
navbarPage("title",theme = shinytheme("flatly"),
tabPanel("Home",
菜单选项卡的大小有一些标志?
我试过这个解决方案:
How can I insert an image into the navbar on a shiny navbarPage()
但不知何故不起作用。图片太大覆盖所有菜单项
感谢
这是一个老问题,但我一直在寻找解决方案,而当我尝试使用 shinyapps.io 发布我的应用程序时,我发现的其他问题导致了问题,这是因为我同时使用了两者fluidPage
和 navbarPage
如其他答案中所建议。
这是我从 shinyapps.io
支持团队收到的解决方案
#~~~~~~~~~~~~~~~~~~~~~~~ LOGAN SERVICES DASHBOARD ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ui <- shiny::navbarPage(#the line of code places the logo on the left hand side before the tabs start. See image below.
title = div(img(src='LoganTogether-LOGO.jpg',
style="margin-top: -14px;
padding-right:10px;
padding-bottom:10px",
height = 60)),
#theme = "journal",
windowTitle="Logan Together: Service Map",
#MAIN TAB~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tabPanel("Interactive map", # then you go on to code the rest of your UI as normal
如何在 Shiny 应用中放置标题而不是标题:
navbarPage("title",theme = shinytheme("flatly"),
tabPanel("Home",
菜单选项卡的大小有一些标志? 我试过这个解决方案: How can I insert an image into the navbar on a shiny navbarPage() 但不知何故不起作用。图片太大覆盖所有菜单项
感谢
这是一个老问题,但我一直在寻找解决方案,而当我尝试使用 shinyapps.io 发布我的应用程序时,我发现的其他问题导致了问题,这是因为我同时使用了两者fluidPage
和 navbarPage
如其他答案中所建议。
这是我从 shinyapps.io
支持团队收到的解决方案#~~~~~~~~~~~~~~~~~~~~~~~ LOGAN SERVICES DASHBOARD ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ui <- shiny::navbarPage(#the line of code places the logo on the left hand side before the tabs start. See image below.
title = div(img(src='LoganTogether-LOGO.jpg',
style="margin-top: -14px;
padding-right:10px;
padding-bottom:10px",
height = 60)),
#theme = "journal",
windowTitle="Logan Together: Service Map",
#MAIN TAB~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tabPanel("Interactive map", # then you go on to code the rest of your UI as normal