help mata mm_plot()-------------------------------------------------------------------------------

Title

mm_plot() -- Draw plot using Stata'sgraph twowaycommand

Syntax

voidmm_plot(X[,plottype,options])

real scalar_mm_plot(X[,plottype,options])

where

X:real matrixcontaining data (rows are observations, columns variables)

plottype:string scalarspecifying type of twoway plot (see helptwoway; default is"scatter")

options:string scalarspecifying options to be passed on to the graph command

Description

mm_plot(X)draws a twoway plot from the contents ofXusing Stata'sgraphtwowaycommand. The columns ofXare the variables to be plotted.mm_plot()aborts with error if the graph command cannot be executed successfully.

_mm_plot()performs the same action asmm_plot()but returns the appropriate Stata return code instead of aborting with error if the graph command cannot be executed successfully.

RemarksExamples:

. mata: mm_plot(uniform(100,2))

. mata: mm_plot(sort(uniform(10,3),3),"line")

. mata: mm_plot(uniform(100,2), "", "msymbol(Th)")

Conformability

mm_plot(X,plottype,options):X:n x kplottype:1 x 1options:1 x 1result:void

_mm_plot(X,plottype,options):X:n x kplottype:1 x 1options:1 x 1result:1 x 1

DiagnosticsNone.

Source codemm_plot.mata

AuthorBen Jann, ETH Zurich, jann@soz.gess.ethz.ch

Also seeOnline: help for

graph twoway,moremata