It turns out that -pairplot- is mine.
Friedrich is well advised to go back to basics
when a user-written program appears ornery,
especially if that user is elusive or enigmatic.
The answer to his original question is, however,
. pairplot before after, ms(S D) mc(navy maroon)
Friedrich also wrote:
-------------------------------------------------
This statement in the help file is not clear to me: "Understand that
at the heart of pairplot is a scatter yvar1 yvar2 xvar with vertical
alignment, but a scatter xvar yvar1 || scatter xvar yvar2 with
horizontal alignment. The difference means that is easiest to control
display of yvar2 by way of a collective option to be passed to the
second scatter." Is the word "not" missing in the first sentence?
---------------------------------------------------
The answer is No. (However, a word "it" is missing from the second
sentence.)
In Friedrich's example,
. pairplot before after
gets mapped to
. scatter before after <observation_number>
so that there are two y variables, for which two marker symbols,
two marker colours, and so forth, may be specified.
-pairplot- is just a convenience command. That beats an inconvenience
command, but nothing else.
Nick
[email protected]
Friedrich Huebler
> I went back to basics to draw the graph I needed.
>
> . sysuse auto
> . ren mpg before
> . gen after = before + 10
> . gen n = _n
> . twoway (rspike before after n) (scatter before n, ms(S) mc(navy))
> (scatter after n, ms(D) mc(maroon))
>
> Friedrich
>
> On 6/6/07, Friedrich Huebler <[email protected]> wrote:
> > With -pairplot- from SSC it is possible to change the
> markers for the
> > paired observations when the lines are horizontal. I have
> been unable
> > to change the second marker when the lines are vertical.
> How can this
> > be done?
> >
> > . sysuse auto
> > . ren mpg before
> > . gen after = before + 10
> > . pairplot before after, horizontal ms(S) mc(navy) y2(ms(D)
> mc(maroon))
> > . pairplot before after, ms(S) mc(navy) y2(ms(D) mc(maroon))
> >
> > In the last command, the y2() options are ignored. An x2() option is
> > not mentioned in the help file and leads to an error message.
> >
> > . pairplot before after, ms(S) mc(navy) x2(ms(D) mc(maroon))
> > option x2() not allowed
> > r(198);
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/