xtline.hlp

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 154 行

HLP
154
字号
{smcl}
{* 29mar2005}{...}
{cmd:help xtline}{right:dialog:  {bf:{dialog xtline}}}
{hline}

{title:Title}

{p2colset 5 20 22 2}{...}
{p2col :{hi:[XT] xtline} {hline 2}}Panel-data line plots{p_end}
{p2colreset}{...}


{title:Syntax}

{phang}
Graph by panel:

{p 8 23 2}
{cmd:xtline} {varlist} {ifin} [{cmd:,} {it:{help xtline##panel:panel_options}}]

{phang}
Overlaid panels

{p 8 23 2}
{cmd:xtline} {varname} {ifin}{cmd:,} {opt ov:erlay} 
[{it:{help xtline##overlaid:overlaid_options}}]


{marker panel}{...}
{synoptset 25 tabbed}{...}
{synopthdr :panel_options}
{synoptline}
{syntab:Plot}
{synopt :{it:{help cline_options}}}affect rendition of the plotted points connected by lines{p_end}

{syntab:Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add other plots to the generated graph{p_end}

{syntab:Y-Axis, T-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{bf:[G] {it:twoway_options}}}{p_end}

{syntab:By}
{synopt :{opt by:opts(by_suboptions)}}affect appearance of the combined graph{p_end}
{synoptline}
{p2colreset}{...}


{marker overlaid}{...}
{synoptset 26 tabbed}{...}
{synopthdr :panel_options}
{synoptline}
{syntab:Main}
{synopt :{opt ov:erlay}}overlay each panel on the same graph{p_end}

{syntab:Plot 1, Plot 2, Plot 3, Plot 4}
{synopt :{cmdab:plot:}{ul:{it:#}}{opth "opts(cline_options:cline_options)"}}affect rendition of the {it:#} panel line{p_end}

{syntab:Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add other plots to the generated graph{p_end}

{syntab:Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{bf:[G] {it:twoway_options}}}{p_end}
{synoptline}
{p2colreset}{...}


{title:Description}

{pstd}
{cmd:xtline} draws line plots for panel data.


{title:Options}

{dlgtab:Main}

{phang}
{opt overlay} causes the plot from each panel to be overlaid on the same
graph.  The default is to generate plots by panel.  This option may not be
combined with {opt byopts()} or be specified when there are multiple variables
in {varlist}.

{dlgtab:Plot}

{phang}
{it:cline_options} affect the rendition of the plotted points connected by
lines; see {it:{help cline_options}}.

{dlgtab:Plot 1, Plot 2, Plot 3, Plot 4}

{phang}
{opt plot#opts(cline_options)} affect the rendition of the #th panel (in
sorted order).  The {it:cline_options} can affect whether and how the points
are connected; see {it:{help cline_options}}.

{dlgtab:Add plot}

{phang}
{opt addplot(plot)} provides a way to add other plots to the generated graph;
see {it:{help addplot_option}}.

{dlgtab:Y-Axis, T-Axis, Title, Caption, Legend, Overall}

{phang}
{it:twoway_options} are any of the options documented in help
{it:{help twoway_options}} excluding {cmd:by()}.  These include options for
titling the graph (see help {it:{help title_options}}), and options for saving
the graph to disk (see help {it:{help saving_option}}).

{dlgtab:By}

{phang}
{opt byopts(by_suboptions)} allows all the options documented in
{it:{help by_option}}.  These options affect the appearance of the by-graph.
{opt byopts()} may not be combined with {opt overlay}.


{title:Examples}

{pstd}
Suppose that Tess, Sam, and Arnold kept a calorie log for an entire calendar
year.  At the end of the year, if they pooled their data together, they would
have a dataset (e.g. {cmd:xtline1.dta}) that contains the amount of calories
consumed for 365 days for each of them.  They could then use {cmd:tsset} to
identify the date variable and treat each person as a panel, and then use
{cmd:xtline} to plot the calories versus time for each person separately.

	{cmd:. sysuse xtline1, clear}
	{cmd:. tsset person day}
	{cmd:. xtline calories, tlabel(#3)}
	  {it:({stata "xtline_ex caloriesby":click to run})}

{pstd}
Specify the {cmd:overlay} option so that the values are plotted on the same
graph; this will provide a better comparison between Tess, Sam, and Arnold.

	{cmd:. sysuse xtline1, clear}
	{cmd:. tsset person day}
	{cmd:. xtline calories, overlay}
	  {it:({stata "xtline_ex caloriesover":click to run})}


{title:Also see}

{psee}
Manual:  {bf:[XT] xtline}

{psee}
Online:  
{helpb graph twoway},
{helpb tsline},
{helpb tsset}
{p_end}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?