在闪亮的应用程序中嵌入图像

编程入门 行业动态 更新时间:2024-10-14 20:27:11
本文介绍了在闪亮的应用程序中嵌入图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在开发一个闪亮的应用程序,并且希望在该应用程序的右上角添加一个徽标。

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

更多推荐

在闪亮的应用程序中嵌入图像

本文发布于:2023-07-18 14:12:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1145593.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   图像

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!