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?
img()
now and all I get is an error about an unexpected$
. Where should I add this? – Chantal$logo = Array('theme1' => '<img src="..." />', 'theme2' => '<img src="..." />');
and you still end up as writing it as html anyways xD – Timberland