figWidth.RdIn an R Markdown document, figure dimensions are normally
specified in inches; these are translated into pixel
dimensions when HTML output is requested and rglwidget is used. These functions reproduce that
translation.
figWidth()
figHeight()When used in an R Markdown document, these functions
return the requested current dimensions of figures in pixels. Outside such a document, NULL
is returned.
# No useful return value outside of R Markdown:
figWidth()
#> [1] 480
figHeight()
#> [1] 480