figWidth

0th

Percentile

Get R Markdown figure dimensions in pixels.

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
figWidth()
figHeight()
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.

Aliases
  • figWidth
  • figHeight
Examples
# NOT RUN {
# No useful return value outside of R Markdown:
figWidth()
figHeight()
# }
Documentation reproduced from package rgl, version 0.100.50, License: GPL

Community examples

Looks like there are no examples yet.