Get R Markdown figure dimensions in pixels
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.