I am builidng a shiny application using a navbarPage()
layout. I would like to insert an image to be on the right hand side of the screen, in the navigation bar. It would look like the navigation bar at the top of, for instance, the stackoverflow sites, but with an logo at the far right. I have tried:
shinyUI(
navbarPage (title="test Page" ,
img(src="mylogo.gif", style="float:right; padding-right:25px"),
tabPanel(title="Panel 1",...)
))
However all this does is display the image in the far right below the navigation bar, instead of the content of the first tab (Note - the image is in the www
directory as required).
I can use the icon=
argument, but that put the icon on the tab in the browser.
Any ideas on how to put the image on the navigation bar itself?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…