Controlling the height of fluidRow in Shiny

I know that there are similar questions already answered on stackoverflow. But, unfortunately, they do not work for me. I am using plotlyOutput() instead of plotOutput(), and following is how I have tried to change the height of a fluidRow():

fluidRow(
plotlyOutput("plot", height = 200)
)

Or,

fluidRow(
plotlyOutput("plot"),
div(style = "height:200px;")
)

However, nothing changes in my Shiny app. Is there any other option to change the height?

I figured out the solution! It should be like this:

ggplotly(gg1, width = 1400, height = 300)

If you want ggplotly() to be aware of it's container's size in shiny, you can do this:

4 Likes