Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: RE: Installing symbolstyles


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: RE: Installing symbolstyles
Date   Wed, 19 Oct 2005 16:17:04 -0400

I'd like to expand a little on Nick's 1st suggestion. You can actually get at quite a variety of symbols by defining a variable that contains the symbol you want and using marker labels. It takes some experimentation, but if you can find a font that has the symbol you want, you can usually get it into a Stata graph as the marker. For example, I found that char(186) is the paragraph symbol in my default font, so:

gen str1 c186=char(186)
gr tw scatter mpg weight, mlab(c186) mlabpos(0) msym(i)

The resulting graph uses the paragraph symbol instead of a regular marker. If you want to access some more esoteric symbol that isn't in the default font's character set, you can change the font used in the graph window by using Graph-Preferences.

Michael Blasnik
[email protected]

----- Original Message ----- From: "Nick Cox" <[email protected]>
To: <[email protected]>
Sent: Wednesday, October 19, 2005 12:44 PM
Subject: st: RE: Installing symbolstyles



I believe not, as the code for this would require very low
level programming and StataCorp have yet to publicise how
to extend the graphics in this respect -- and on my guess
are unlikely to do that in any foreseeable future.

You can

1 use printable characters within marker label variables

<snip>

Nick
[email protected]

Eric G. Wruck

Is it possible to install a new symbolstyle (symbolstyles are the
circles, triangles, squares & so forth that can be used to mark
observations in a graph)?  If so, how does one go about doing so?
*
*   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