Bookmark and Share

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


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

Re: st: key symbol size in legend


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   Re: st: key symbol size in legend
Date   Thu, 5 Sep 2013 13:17:27 -0400

Stas,

You can add a -scatter- command for data that won't be plotted and
control the size of the respective markers in the legend.

twoway (scatter mpg trunk weight [aw=price], ms(Oh Dh) msize(small
small)) (scatter mpg trunk weight if mpg==., ms(Oh Dh) mcolor(navy
maroon) msize(*3 *2)), legend(order(3 4))

Reference: http://www.stata.com/statalist/archive/2009-02/msg01067.html

Friedrich


On Tue, Sep 3, 2013 at 2:42 PM, Stas Kolenikov <[email protected]> wrote:
> Is there any way to control how large the symbols are in legends? Consider
>
> sysuse auto, clear
> scatter mpg trunk weight [aw=price] , ms(Oh Dh) msize(small small)
>
> Now I am not liking the size of the symbols in the legend, and want to
> make them a tad larger. I go to the help file, which suggests
> -symysize()- and -symxsize()- options:
>
> scatter mpg trunk weight [aw=price] , ms(Oh Dh) msize(small small)
> legend( symysize(20) symxsize(30)  )
>
> Well, nothing apparently happens, so I -forcesize- them to work:
>
> scatter mpg trunk weight [aw=price] , ms(Oh Dh) msize(small small)
> legend( symysize(20) symxsize(30) forcesize )
>
> Instead of the symbols getting larger, the white space in the legend
> gets larger. Hm... any suggestions?
>
> -- Stas Kolenikov, PhD, PStat (ASA, SSC)
> -- Senior Survey Statistician, Abt SRBI
> -- Opinions stated in this email are mine only, and do not reflect the
> position of my employer
> -- http://stas.kolenikov.name
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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