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: linkplot - linepattern/linestyle etc.


From   "[email protected]" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: linkplot - linepattern/linestyle etc.
Date   Mon, 22 Jul 2013 19:10:52 +0000

Dear Statalists,

I am using Stata 12.1 on Mac 10.7.5.

And I have a question concerning the linkplot, the Stata module for multiple linked scatter plots written by Nikolas Cox 2003.

It is fantastic, because it does, what it should, but...
I have 15 patients followed up with two variables (Age and RenalFunction) and the module allows me to plot several - one graph per patient - graphs linked to each patient. The only problem is that I can't differentiate the graphs on the plot very well. It would be nice to have different line styles.

I tried to use the commands linepattern or lifestyle or clcolor to define the lines differently, but every time I get a error message, that this option is not allowed and that default is used. Maybe it isn't possible - I couldn't find something in the web concerning this problem. 

I don't want to bother someone with something easy, but I am unexperienced with these commands and would be very happy, if someone replies, although it is obviously easy (for everyone expect me).

this is how my data is organized:

newpatient	Ageyears	GFRSchwartz
1	2.08	75.31
1	2.50	91.34
1	2.92	77.79
1	3.50	102.50
1	4.50	104.88
1	5.67	99.33
2	8.92	89.38
2	9.75	57.41
2	11.00	45.71
2	11.75	26.77
2	12.75	30.53
2	13.75	37.43
2	14.83	31.95
2	15.58	29.16
2	16.58	33.00
2	17.00	29.80
2	18.08	24.13
3	4.58	187.55
3	6.00	124.19
3	6.92	125.62
3	7.92	85.91


These are the commands I used:

linkplot GFRSchwartz Ageyears, link(newpatient)

and 

linkplot GFRSchwartz Ageyears, link(newpatient), mlabel(newpatient)

mlabel works, too. But than every point from the connected line is labeled and the plot gets again more complicated to understand.

Any help will be appreciated,
best regards,
Lea Haisch

__
Dr. med. Lea Haisch
Omran's Lab
Research Laboratory of the Pediatric Clinic
University Hospital Muenster
Germany

*
*   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