[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: Left-aligned -tmap- legend
Maurizio Pisati, the author of -tmap-, has informed me that legends
can be left-aligned by adding the options -just(left) bexpand-.
. tmap choropleth winner if conterminous, id(id)
map(us-Coordinates.dta) legpos(7) legsize(2) legtitle("US
Presidential Election", just(left) bexpand) clmethod(unique)
Thank you, Maurizio.
--- Friedrich Huebler <firstname.lastname@example.org> wrote:
> When I draw a map with -tmap- from SSC the legend keys and the
> legend title are always centered and I don't know how to change
> this. Take the following example:
> . use us-database.dta, clear
> . tmap choropleth winner if conterminous, id(id)
> map(us-Coordinates.dta) legpos(7) legsize(2) legtitle("US
> Presidential Election") clmethod(unique)
> The entire legend is centered but I would like the title and the
> keys to be left-aligned. In other words, the legend title should
> be at the left margin of the graph and the boxes should be directly
> underneath the letters "US".
> Can this be done, either by changing an option or editing the
> -tmap- ado files? I looked at tmap_choropleth.ado but don't
> understand how the alignment of the legend is controlled.
> Many thanks,
> Friedrich Huebler
Start your day with Yahoo! - make it your home page
* For searches and help try: