sumanta das
sumanta das

Reputation: 330

Resize Embedding Image in Shiny App

With reference to the answer presented here by Kay https://stackoverflow.com/a/21998722/9373320, I want to reduce the inserted image size to 50% both height and width.

mainPanel( img(src='myImage.png', align = "right"), ### the rest of your code )

Please help.

Upvotes: 11

Views: 14332

Answers (1)

SeGa
SeGa

Reputation: 9809

Just type height and width in the image tag:

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

Upvotes: 19

Related Questions