Description Usage Arguments Value Examples
Return a pleasing size for plots, based on the @code width and @code height, if provided.
1 2 3 |
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? |
a list(width, height)
of reasonable figure dimensions
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.