fontMetricsAdjustment

fun fontMetricsAdjustment(widthCorrection: Number?): OptionsMap

Adjusts estimated width of text labels on plot.

Allows for manual correction in a rare cases when plot layout looks broken due to either overestimation or underestimation of size of text labels on plot.

Can be mixed with other plot features in a plot-expression:

p + ggsize(300, 500) + fontMetricsAdjustment(1.3)

Parameters

widthCorrection

Correcting coefficient applied to default width estimate of a text label.