gpt4 book ai didi

在 Shiny 应用程序中调整嵌入图像的大小

转载 作者:行者123 更新时间:2023-12-04 12:27:07 26 4
gpt4 key购买 nike

引用 Kay https://stackoverflow.com/a/21998722/9373320 在此处提供的答案,我想将插入的图像大小减少到 50% 的高度和宽度。
mainPanel(
img(src='myImage.png', align = "right"),
### the rest of your code
)

请帮忙。

最佳答案

只需在图像标签中输入高度和宽度:

img(src="src", height="50%", width="50%", align="right")

关于在 Shiny 应用程序中调整嵌入图像的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50348886/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com