resize htmlwidget in quarto presentation?

Is it possible to resize an htmtwidget in a quarto presentation? For example, suppose I have the following in a slide:

vizdraws::vizdraws(prior = "N(0.01, 0.05)",  font_scale = 1.5 )

In rmarkdown I would do this in the code chunk:

r bayesian, out.width = '75%', out.height = '50%', fig.align='center', out.extra='style="border: none; display:block; margin:auto;"'


You should be able to do the same as in rmarkdown, though Quarto presentation are revealjs based, and it has sizing feature and specific CSS you need to look into.

But overall it should work

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.