Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Scoreplot: different colors

From   Ulrich Kohler <>
Subject   Re: st: Scoreplot: different colors
Date   Fri, 18 Jun 2010 13:19:23 +0200

Am Freitag, den 18.06.2010, 12:16 +0200 schrieb
> Dear Statalist,
> I need to dientify to identify different groups with different colors.
> I am performing:
> sysuse auto
> pca trunk weight length headroom
> scoreplot, component(2) mlabel(foreign) mcolor(green blue)
> I can see the two different groups (domestic and foreign) but I need them
> in different colors.
> Could you please help me?

Martin and Nick have answered the question. Allow me to add that this
plot is a special case of a biplot:

. sysuse auto
. biplot trunk weight length headroom, std alpha(1)

The following command brings you quite close to the self made

. biplot trunk weight length headroom, ///
   rowover(for) alpha(1) std nocol xnegate ynegate

Many regards

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index