[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: SV: how do I overlay two linkplot graphs?

From   "Kim Lyngby Mikkelsen (KLM)" <[email protected]>
To   <[email protected]>
Subject   st: SV: how do I overlay two linkplot graphs?
Date   Wed, 12 Dec 2007 14:07:28 +0100

Overlaying graphs is done using the '||'-option between plots you want to overlay. 

Try something like this:

linkplot score character if task==1, link(GRP) linepattern(solid) ||   linkplot score character if task==2, link(GRP) linepattern(dot))

Obs: everything should be written within the same line!
Obs: I am not familiar with the linkplot command, and I do not know if the part of your command after the comma is correct. I have removed your specification of 'plot' as I can see that this option requires an argument, which I think might be the name of another plot you have previous saved.

Best wishes.
Regards Kim

Kim Lyngby Mikkelsen
Uddannelse� Ph.D.� 
[email protected]� 

-----Oprindelig meddelelse-----
Fra: [email protected] [mailto:[email protected]] P� vegne af Stephen Cox
Sendt: 12. december 2007 05:54
Til: [email protected]
Emne: st: how do I overlay two linkplot graphs?

 Folks - For each case, I have 2 (task 1, task 2) sets of 5 variables (character1 - 5). I want to do a linkplot across the 5 character variables, one for each task set, but overlayed, and with a different line patterns for each tasks.

I'm quite new to Stata, and can't work out how the plot option works. The help seems to say it allows twoway connected graph options, but I keep getting error messages.

I can't define line patterns, nor get the two sets of lines to go on the same graph. I am obviously not using the plot() options correctly here, but can't work out how.

Here is one of the many many attempts I have had:

.linkplot score character, link(GRP) plot (if task==1, linepattern(solid) if task==2, linepattern(dot))



Stephen Cox |

Faculty of Business | Queensland University of Technology | <> www.bus.qut <>
phone: +61 7 3138 1776 | Office: Z757 | email: [email protected] | CRICOS No. 00213J

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index