📄 twoway_pcarrowi.hlp
字号:
{smcl}
{* 29mar2005}{...}
{cmd:help twoway pcarrowi}
{hline}
{title:Title}
{p2colset 5 34 36 2}{...}
{p2col :{hi:[G] graph twoway pcarrowi} {hline 2}}Twoway pcarrow with
immediate arguments{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 24 2}
{cmdab:tw:oway}
{cmd:pcarrowi}
{it:immediate_values}
[{cmd:,}
{help twoway_scatteri##options:{it:options}}]
{pstd}
where {it:immediate_values} is one or more of
{it:#_y1} {it:#_x1} {it:#_y2} {it:#_x2} [{cmd:(}{it:#_clockposstyle}{cmd:)}] [{cmd:"}{it:text for label}{cmd:"}]
{pstd}
See {it:{help clockposstyle}} for a description of {it:#_clockposstyle}.
{title:Description}
{pstd}
{cmd:pcarrowi} is an immediate version of {help twoway pcarrow};
see {hi:[U] 19 Immediate commands} and {help immed}.
{cmd:pcarrowi} is intended for programmer use but can be
useful interactively.
{marker options}{...}
{title:Options}
{phang}
{it:options} are as defined in {helpb twoway pcspike}, with the
following modifications:
{pmore}
If {cmd:"}{it:text for label}{cmd:"} is specified among any of the
immediate arguments, option {cmd:mlabel()} is assumed.
{pmore}
If {cmd:(}{it:#_clockposstyle}{cmd:)} is specified among any of the
immediate arguments, option {cmd:mlabvposition()} is assumed.
{title:Remarks}
{pstd}
Immediate commands are commands that obtain data from numbers typed
as arguments. Typing
{cmd:. twoway pcarrowi 1.1 1.2 1.3 1.4 2.1 2.2 2.3 2.4,} {it:any_options}
{pstd}
produces the same graph as typing
{cmd:. clear}
{cmd:. input y1 x1 y2 x2}
{txt} y1 x1 y2 x2
1{cmd}. 1.1 1.2 1.3 1.4
{txt} 2{cmd}. 2.1 2.2 2.3 2.4
{txt} 3{cmd}. end
{txt}
{cmd:. twoway pcarrowi y x,} {it:any_options}
{pstd}
{cmd:twoway} {cmd:pcarrowi} does not modify the data in memory.
{pstd}
{cmd:pcarrowi} is intended for programmer use but can be used interactively.
In {cmd:twoway pcarrow} {help twoway pcarrow##basic_use:Basic use}, we drew
some simple clock hands from data that we input. We can draw the same graph
using {cmd:pcarrowi}.
{cmd:. twoway pcarrowi 0 0 0 1 0 0 1 0}
{it:({stata `"twoway pcarrowi 0 0 0 1 0 0 1 0"':click to run})}
{* graph gtpcarrowi1}{...}
{pstd}
We can also draw the annotated second example,
{cmd}{...}
twoway pcarrowi 0 0 0 1 (3) "3 o'clock"
0 0 1 0 (12) "12 o'clock",
aspect(1) headlabel plotregion(margin(vlarge))
{txt}{...}
{it:({stata `"twoway pcarrowi 0 0 0 1 (3) "3 o'clock" 0 0 1 0 (12) "12 o'clock", aspect(1) headlabel plotregion(margin(vlarge))"':click to run})}
{* graph gtpcarrowi2}{...}
{pstd}
As another example,
in {it:{help added_text_option}} we demonstrated the
use of option {cmd:text()} to add text to a graph:
{cmd}. twoway qfitci mpg weight, stdf ||
scatter mpg weight, ms(O)
text(41 2040 "VW Diesel", place(e))
text(28 3260 "Plymouth Arrow", place(e))
text(35 2050 "Datsun 210 and Subaru", place(e)){txt}
{it:({stata `"gr_example auto: twoway qfitci mpg weight, stdf || scatter mpg weight, ms(O) text(41 2040 "VW Diesel", place(e)) text(28 3260 "Plymouth Arrow", place(e)) text(35 2050 "Datsun 210 and Subaru", place(e))"':click to run})}
{* graph atofig1, but do not repeat in manual version}{...}
{pstd}
Below we use {cmd:pcarrowi} to obtain similar results:
{cmd}. twoway qfitci mpg weight, stdf ||
scatter mpg weight, ms(O) ||
scatteri 41 2040 (3) "VW Diesel"
28 3260 (3) "Plymouth Arrow"
35 2050 (3) "Datsun 210 and Subaru"
, msymbol(i){txt}
{* graph gtpcarrowi3}{...}
{it:({stata "gr_example2 pcarrowi1":click to run})}
{title:Also see}
{psee}
Manual: {bf:[G] graph twoway pcarrowi}
{psee}
Online: {helpb twoway scatteri};
{helpb twoway pcarrow};
{helpb twoway};
{help immed}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -