Home:ALL Converter>Embedding Image in Shiny App

Embedding Image in Shiny App

Ask Time:2014-02-25T03:17:59         Author:kay

Json Formatter

I've been working on a shiny app and would like to include a logo in the upper right corner of the app. How can I easily embed an image using shiny and r?

Thanks! K

Author:kay,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/21996887/embedding-image-in-shiny-app
kay :

I found another option that looks good for this app, so I'm sharing for others who want the image in the mainPanel.\n\nmainPanel(\n img(src='myImage.png', align = \"right\"),\n ### the rest of your code\n )\n\n\nSave the file in a www directory in the shinyApp directory:\n\n | shinyApp/\n | ui.R\n | server.R\n | www/\n | myImage.png\n",
2014-02-24T20:51:21
yy