📄 twoway_rcapsym.hlp
字号:
{smcl}
{* 08apr2005}{...}
{cmd:help twoway rcapsym}{right:dialogs: {dialog twoway_overlay:overlaid twoway}{space 0}}
{right:{dialog twoway_simple:single twoway}{space 2}}
{hline}
{title:Title}
{p2colset 5 33 35 2}{...}
{p2col :{hi:[G] graph twoway rcapsym} {hline 2}}Range plot with spikes capped with marker symbols{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 60 2}
{cmdab:tw:oway}
{cmd:rcapsym}
{it:y1var} {it:y2var} {it:xvar}
{ifin}
[{cmd:,}
{it:options}]
{p2colset 9 32 34 2}{...}
{it:options}{col 39}description
{p2line}
{cmdab:vert:ical}{...}
{col 32}vertical spikes; the default
{cmdab:hor:izontal}{...}
{col 32}horizontal spikes
INCLUDE help gr_blspike2
INCLUDE help gr_markopt
INCLUDE help gr_axlnk
INCLUDE help gr_twopt
{p2line}
{pin}
All explicit options are {it:rightmost}, except {cmd:vertical}
and {cmd:horizontal}, which are {it:unique}; see {help repeated options}.
{title:Description}
{pstd}
A range plot has two {it:y} variables, such as high and low daily stock prices
or upper and lower 95% confidence limits.
{pstd}
{cmd:twoway} {cmd:rcapsym} plots a range using spikes capped with marker
symbols.
{title:Options}
{phang}
{cmd:vertical}
and
{cmd:horizontal}
specify whether the high and low {it:y} values are to be presented
vertically (the default) or horizontally.
{pmore}
In the default {cmd:vertical} case, {it:y1var} and {it:y2var} record the
minimum and maximum (or maximum and minimum) {it:y} values to be
graphed against each {it:xvar} value.
{pmore}
If {cmd:horizontal} is specified, the values recorded in {it:y1var} and
{it:y2var} are plotted in the {it:x} direction and {it:xvar} is treated
as the {it:y} value.
INCLUDE help gr_blspikef2
{phang}
{it:marker_options}
specify how the markers look, including
shape, size, color, and outline;
see {it:{help marker_options}}. The same marker is used on both ends of
the spikes.
{phang}
{it:marker_label_options}
specify if and how the markers are to be labeled. Because
the same marker label would be used to label both ends of the spike,
these options are of limited use in this case.
See {it:{help marker_label_options}}.
INCLUDE help gr_axlnkf
INCLUDE help gr_twoptf
{title:Remarks}
{pstd}
We have daily data recording the values for the S&P 500 in 2001:
{cmd:. sysuse sp500, clear}
{cmd:. list date high low close in 1/5}
{txt}
{c TLC}{hline 11}{c -}{hline 9}{c -}{hline 9}{c -}{hline 9}{c TRC}
{c |} {res} date high low close {txt}{c |}
{c LT}{hline 11}{c -}{hline 9}{c -}{hline 9}{c -}{hline 9}{c RT}
1. {c |} {res}02jan2001 1320.28 1276.05 1283.27 {txt}{c |}
2. {c |} {res}03jan2001 1347.76 1274.62 1347.56 {txt}{c |}
3. {c |} {res}04jan2001 1350.24 1329.14 1333.34 {txt}{c |}
4. {c |} {res}05jan2001 1334.77 1294.95 1298.35 {txt}{c |}
5. {c |} {res}08jan2001 1298.35 1276.29 1295.86 {txt}{c |}
{c BLC}{hline 11}{c -}{hline 9}{c -}{hline 9}{c -}{hline 9}{c BRC}{txt}
{pstd}
We will use the first 37 observations from these data:
{cmd:. twoway rcapsym high low date in 1/37}
{it:({stata "gr_example sp500: twoway rcapsym high low date in 1/37":click to run})}
{* graph gtrcapsym1}{...}
{title:Also see}
{psee}
Manual: {bf:[G] graph twoway rcapsym}
{psee}
Online:
{helpb twoway rarea},
{helpb twoway rbar},
{helpb twoway rspike},
{helpb twoway rcap},
{helpb twoway rline},
{helpb twoway rconnected},
{helpb twoway rscatter}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -