Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Marker symbol with pairplot


From   "Friedrich Huebler" <[email protected]>
To   [email protected]
Subject   Re: st: Marker symbol with pairplot
Date   Wed, 6 Jun 2007 17:02:50 -0400

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index