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]

st: RE: How to have different marker symbols in 'catplot' without using asyvars option


From   Philip Jones <pjones8@uwo.ca>
To   statalist@hsphsun2.harvard.edu
Subject   st: RE: How to have different marker symbols in 'catplot' without using asyvars option
Date   Tue, 30 Nov 2010 15:14:00 -0500

Nick,

I'm sorry to have missed the part in the FAQ about -catplot- being a user-written
program (thanks for writing it though!).

Thank you for your suggestion to change the markers directly in the Graph Editor.
That worked well.

(For anyone who may be wondering, I originally couldn't get the markers to individually
change. Each change I made in the Graph Editor would also change all of the other
symbols on the graph. However, if one right-clicks on an object, there is an option to
change "object-specific properties". Changes made here will only affect the selected
marker.)

Now, if I could only see how Stata internally made the changes (in code) I could take
advantage of that to write a command that would do this. Oh well!

Many thanks for your help.

Sincerely,

Phil


Nick Cox wrote:

-catplot- is from SSC. Please explain where user-written programs you refer to come from, as requested long since in the FAQ.

I've wanted this myself, and I wrote -catplot-. What you're seeing is behaviour wired into -graph dot-, which is doing most of the work, and I don't know a way to subvert it easily. 

You can change symbols selectively in the Graph Editor, or you can go the long way round and re-create the graph using -twoway-, but no option of -graph dot- I know of does what you want. 
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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