Cannot set dynamic resizing in ggplotly using width/height=100%

Hi there,

I would like to create a plot with ggplotly() by setting the height/width so that it will look like this in html:

with: width/height=100%

However, this is not allowed: ggplotly(p, size=“100%”, height=“100%”).

It looks like this is possible when using RShiny.

Is there a way to do that from ggplotly() ?

Thanks a lot,