help graphstoalso see: graphout, statsto, statout

Title

graphsto -- Collecting graphs | 08June2012

Description

graphsto is a prefix for graph export. It stores the graph_name
of graphs that have been exported. graphout then uses the stored graph
names to add those graphs to a file. See graph export for more
information about export_options.

For more information and examples, please visit the Collect Website.

General syntax

graphsto [options] [: graph export graph_name, export_options]

Options

dir List the graph names stored in the global macro
drop Drop the graph names stored in the global macro

Exmamples

Below are several basic examples of graphsto.

. sysuse auto
(1978 Automobile Data)

Add graphs to a HTML file.

. histogram price, freq
(bin=8, start=3291, width=1576.875)

. graphsto: graph export g1.png, replace
(file g1.png written in PNG format)

. graph twoway scatter price mpg

. graphsto: graph export g2.png, replace
(file g2.png written in PNG format)

. graphout using example.html
(file example.html written in HTML format)

. graphsto dir
g1.png
g2.png

. graphsto clear

Authors

Joseph D. Wolfe, Indiana University, jdwolfe@indiana.edu

Scott Long, Indiana University, jslong@indiana.edu

Also see

Manual: [G] graph

Website: Collect Website