View source: R/miscellaneous.R
getDimPage | R Documentation |
Report is in A4 and presentation dimensions extracted from PowerPoint. The returned dimensions are the page dimensions without the margins.
getDimPage(
type = c("width", "height"),
landscape = (style == "presentation"),
margin = 1,
pageDim = NULL,
style = "report"
)
type |
Character vector with dimension of interest, among:
'width', 'height', multiple are possible.
By default: |
landscape |
Logical, if TRUE the table is presented in landscape
format. |
margin |
Margin in the document in inches, 1 by default. |
pageDim |
(optional) Numeric vector of length 2 with page width and height in inches in portrait format, in case page dimensions differ from the default implemented report/presentation. These dimensions should include the margins. |
style |
String with table style, either 'report' (by default, a4 format) or 'presentation' |
numeric vector with dimension of interest,
in the same order as specified via the type
parameter.
Laure Cougnaud
## get part of the page available for content
# report A4 portrait format:
getDimPage(type = "width")
getDimPage(type = "height")
# report A4 landscape format:
getDimPage(type = "width", landscape = TRUE)
getDimPage(type = "height", landscape = TRUE)
# Note that the layout is by default set to 'landscape'
getDimPage(type = "width", style = "presentation")
getDimPage(type = "height", style = "presentation")
# custom dimensions: A3 format
getDimPage(type = "width", pageDim = c(11.7, 16.5))
# increase margin
getDimPage(type = "width", margin = 1.5)
# get both dimensions at once
getDimPage(type = c("width", "height"))
# get dimensions of the full page (including margins)
getDimPage(type = c("width", "height"), style = "report", margin = 0)
getDimPage(type = c("width", "height"), style = "presentation", margin = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.