File: figWidth.Rd

package info (click to toggle)
rgl 1.3.34-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,968 kB
  • sloc: cpp: 23,234; ansic: 7,462; javascript: 6,125; sh: 3,555; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
\name{figWidth}
\alias{figWidth}
\alias{figHeight}
\title{
Get R Markdown figure dimensions in pixels
}
\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 \code{\link{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, \code{NULL}
is returned.
}
\author{
Duncan Murdoch
}

\examples{
# No useful return value outside of R Markdown:
figWidth()
figHeight()
}