📄 spikeplot.hlp
字号:
{smcl}
{* 17mar2005}{...}
{cmd:help spikeplot} {right:dialog: {bf:{dialog spikeplot}}}
{hline}
{title:Title}
{p2colset 5 22 24 2}{...}
{p2col:{hi:[R] spikeplot} {hline 2}}Spike plots and rootograms{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 18 2}
{cmd:spikeplot}
{varname}
{ifin}
{weight}
[{cmd:,} {it:options}]
{synoptset 18 tabbed}{...}
{synopthdr}
{synoptline}
{syntab:Main}
{synopt:{opt r:ound(#)}}round {varname} to nearest multiple of {it:#} (bin
width){p_end}
{synopt:{opt frac:tion}}make vertical scale the proportion of total values;
default is frequencies{p_end}
{synopt:{opt root}}make vertical scale show square roots of frequencies{p_end}
{syntab:Plot}
{synopt:{it:{help twoway_spike:spike_options}}}affect rendition of plotted
spikes{p_end}
{syntab:Add plot}
{synopt:{opth "addplot(addplot_option:plot)"}}add other plots to generated graph{p_end}
{syntab:Y-Axis, X-Axis, Caption, Legend, Overall, By}
{synopt:{it:{help twoway_options}}}any options documented in
{bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
{opt fweight}s, {opt aweight}s, and {opt iweight}s are allowed; see
{help weight}.
{title:Description}
{pstd}
{opt spikeplot} produces a frequency plot for a variable in which the
frequencies are depicted as vertical lines from zero. The frequency may be
a count, a fraction, or the square root of the count (Tukey's rootogram).
The vertical lines may also originate from a different
baseline than zero at the user's option.
{title:Options}
{dlgtab:Main}
{phang}
{opt round(#)} rounds the values of {varname} to the
nearest multiple of {it:#}. This effectively specifies the bin width.
{phang}
{opt fraction} specifies that the vertical scale be the proportion
of total values (percentage) rather than the count.
{phang}
{opt root} specifies that the vertical scale show square roots.
This option may not be specified if {opt frac} is specified.
{dlgtab:Plot}
{phang}
{it:spike_options} affect the rendition of the plotted spikes; see
{helpb twoway spike}.
{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, X-Axis, Caption, Legend, Overall, By}
{phang}
{it:twoway_options} are any of the options documented in
{it:{help twoway_options}}. These include options for titling the graph
(see {it:{help title_options}}), options for saving the graph to disk
(see {it:{help saving_option}}), and the {opt by()} option
(see {it:{help by_option}}).
{title:Examples}
{phang}{cmd:. spikeplot wallasp, round(5)}
{phang}{cmd:. spikeplot day [w=rain] if rain, ytitle("Rainfall in mm")}
{phang}{cmd:. spikeplot age [w=pop], ytitle("Population in 000")}
{title:Also see}
{psee}
Manual: {bf:[R] spikeplot}
{psee}
Online: {helpb histogram}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -