Sizing policy used withing leaflet htmlwidgets.
Usage
leafletSizingPolicy(
defaultWidth = "100%",
defaultHeight = 400,
padding = 0,
browser.fill = TRUE,
...
)Arguments
- defaultWidth
defaults to
"100%"of the available width- defaultHeight
defaults to 400px tall
- padding
defaults to 0px
- browser.fill
defaults to
TRUE- ...
Arguments passed on to
htmlwidgets::sizingPolicyviewer.defaultWidthThe default width used to display the widget within the RStudio Viewer.
viewer.defaultHeightThe default height used to display the widget within the RStudio Viewer.
viewer.paddingPadding around the widget when displayed in the RStudio Viewer (defaults to 15 pixels).
viewer.fillWhen displayed in the RStudio Viewer, automatically size the widget to the viewer dimensions (note that
viewer.paddingis still applied). Default toTRUE.viewer.suppressNever display the widget within the RStudio Viewer (useful for widgets that require a large amount of space for rendering). Defaults to
FALSE.viewer.paneHeightRequest that the RStudio Viewer be forced to a specific height when displaying this widget.
browser.defaultWidthThe default width used to display the widget within a standalone web browser.
browser.defaultHeightThe default height used to display the widget within a standalone web browser.
browser.paddingPadding around the widget when displayed in a standalone browser (defaults to 40 pixels).
browser.externalWhen displaying in a browser, always use an external browser (via
browseURL()). Defaults to `FALSE“, which will result in the use of an internal browser within RStudio v1.1 and higher.knitr.defaultWidthThe default width used to display the widget within documents generated by knitr (e.g. R Markdown).
knitr.defaultHeightThe default height used to display the widget within documents generated by knitr (e.g. R Markdown).
knitr.figureApply the default knitr fig.width and fig.height to the widget when it's rendered within R Markdown documents. Defaults to
TRUE.fillWhether or not the widget's container should be treated as a fill item, meaning that its
heightis allowed to grow/shrink to fit a fill container with an opinionated height (seehtmltools::bindFillRole()for more). Examples of fill containers includebslib::card()andbslib::card_body_fill().
Value
An htmlwidgets::sizingPolicy object