# Create a sizing function that grows at a given ratio — sizeGrowthRatio

v1.7.1|Source:

`R/render-cached-plot.R`

### Description

Returns a function which takes a two-element vector representing an input width and height, and returns a two-element vector of width and height. The possible widths are the base width times the growthRate to any integer power. For example, with a base width of 500 and growth rate of 1.25, the possible widths include 320, 400, 500, 625, 782, and so on, both smaller and larger. Sizes are rounded up to the next pixel. Heights are computed the same way as widths.

### Arguments

- width, height
Base width and height.

- growthRate
Growth rate multiplier.

### See also

This is to be used with `renderCachedPlot()`

.