在闪亮的应用程序中嵌入图像 [英] Embedding Image in Shiny App
本文介绍了在闪亮的应用程序中嵌入图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在开发一个闪亮的应用程序,并且希望在该应用程序的右上角添加一个徽标。
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?
谢谢!
K
Thanks! K
推荐答案
我发现了另一个对本应用程序看起来不错的选项,所以我与其他想要的人共享
I found another option that looks good for this app, so I'm sharing for others who want the image in the mainPanel.
mainPanel(
img(src='myImage.png', align = "right"),
### the rest of your code
)
保存该文件位于ShinyApp目录的www目录中:
Save the file in a www directory in the shinyApp directory:
| shinyApp/
| ui.R
| server.R
| www/
| myImage.png
这篇关于在闪亮的应用程序中嵌入图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文