figWidth: Get R Markdown figure dimensions in pixels.

Description Usage Value Author(s) Examples

View source: R/Sweave_knitr.R

Description

In 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.

Usage

1
2

Value

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.

Author(s)

Duncan Murdoch

Examples

1
2
3
# No useful return value outside of R Markdown:
figWidth()
figHeight()

rgl documentation built on Feb. 1, 2021, 3:01 a.m.