height<- | R Documentation |
Get or set dimensions of a 'figure' class object.
height(x) <- value
width(x) <- value
height(x, ...)
width(x, ...)
resize(x, ...)
## S3 method for class 'figure'
height(x, ...)
## S3 method for class 'figure'
width(x, ...)
height(x) <- value
width(x) <- value
## S3 method for class 'figure'
resize(x, value, what = c("w", "h", "scale"), unit = x$unit, lock = TRUE, ...)
x |
a figure class object. |
value |
new height or width or a scaling factor. |
... |
extra arguments passed to methods. |
what |
The requested dimension to be changed or the scaling factor. |
unit |
The dimension unit of the final plot object. |
lock |
logical, if TRUE, the aspect ratio is kept constant (scaling). |
'height()', 'width()' and 'resize()' are S3 generic functions.
A 'figure' object with the height or width property modified or the requested dimensions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.