plots.pleasing.size: Compute a Pleasing Plot Size

Description Usage Arguments Value Examples

Description

Return a pleasing size for plots, based on the @code width and @code height, if provided.

Usage

1
2
3
plots.pleasing.size(width = NULL, height = NULL,
  paperWidthFrac = NULL, paperHeightFrac = NULL, portrait = FALSE,
  boundToPaper = TRUE)

Arguments

width

the optional width of the plot

height

the optional height of the plot

paperWidthFrac

optional, a fraction of the default paper width

paperHeightFrac

optional, a fraction of the default paper height

portrait

optional, should we use portrait orientation or letter orientation(@code FALSE)

boundToPaper

should we bound the result dimensions to the paper size?

Value

a list(width, height) of reasonable figure dimensions

Examples

1
2
3
4
5
6
plots.pleasing.size(width=3)
# $width=3, $height=1.854102
plots.pleasing.size(height=3)
# $width=4.854102, $height=3
plots.pleasing.size()
# $width=8.3, $height=5.129682

thomasWeise/plotteR documentation built on May 29, 2019, 5:41 a.m.