Stata 15 help for _matplot

Title

[G-2] _matplot -- Scatterplot of matrix

Syntax

_matplot matname [, options ]

options Description ------------------------------------------------------------------------- columns(#1 #2) columns used as y and x; default 1 2 matrix graph as a scatterplot matrix nonames suppress display of rownames with points scatter_options see [G-2] graph twoway scatter graph_matrix_options see [G-2] graph matrix -------------------------------------------------------------------------

Description

_matplot produces a plot of two columns of a matrix, with the data points marked by the rownames. All columns may be plotted by specifying the matrix option.

Options

columns(#1 #2) specifies the columns of the matrices used as the y- and x-coordinate of the plot. The y-coordinate is displayed vertically. The default is columns(1 2). This option may not be used with matrix.

matrix specifies that all columns are to be plotted using graph matrix. This option may not be used with columns().

nonames suppresses labeling of data with rownames.

scatter_options are any options allowed with scatter. You may be especially interested in options for the display of the row labels, see [G-3] marker_label_options.

graph_matrix_options affect the rendition of the matrix plot; see [G-2] graph matrix. These options are allowed only when the matrix option is specified.

Examples

. _matplot m . _matplot m, columns(2 1) . _matplot m, matrix nonames


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