Statalist The Stata Listserver


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

st: Marker symbol with pairplot


From   "Friedrich Huebler" <[email protected]>
To   [email protected]
Subject   st: Marker symbol with pairplot
Date   Wed, 6 Jun 2007 16:06:48 -0400

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);

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?

Thanks,

Friedrich
*
*   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