Stata 15 help for scale_option

[G-3] scale_option -- Option for resizing text, markers, and line widths

Syntax

scale_option Description ------------------------------------------------------------------------- scale(#) specify scale; default is scale(1) ------------------------------------------------------------------------- scale() is unique; see repeated options.

Description

Option scale() makes all the text, markers, and line widths on a graph larger or smaller.

Option

scale(#) specifies a multiplier that affects the size of all text, markers, and line widths on a graph. scale(1) is the default.

To increase the size of all text, markers, and line widths on a graph by 20%, specify scale(1.2). To reduce the size of all text, markers, and line widths on a graph by 20%, specify scale(.8).

Remarks

Under Advanced use in [G-3] marker_label_options, we showed the following graph,

. twoway (scatter lexp gnppc, mlabel(country) mlabv(pos)) (line hat gnppc, sort) , xsca(log) xlabel(.5 5 10 15 20 25 30, grid) legend(off) title("Life expectancy vs. GNP per capita") subtitle("North, Central, and South America") note("Data source: World Bank, 1998") ytitle("Life expectancy at birth (years)") (click to run)

Here is the same graph with the size of all text, markers, and line widths increased by 10%:

. twoway (scatter lexp gnppc, mlabel(country) mlabv(pos)) (line hat gnppc, sort) , xsca(log) xlabel(.5 5 10 15 20 25 30, grid) legend(off) title("Life expectancy vs. GNP per capita") subtitle("North, Central, and South America") note("Data source: World Bank, 1998") ytitle("Life expectancy at birth (years)") scale(1.1) <-- new (click to run)

All we did was add the option scale(1.1) to the original command.


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index