Page 1 of 1

line connecting pairs in scater plot given position on graph

Posted: Thu Dec 08, 2011 3:14 am
by Aktar
Hello,

I would like a line in my scatter plot wich rely all point of the scatter. However the scatter is composed of pairs (points) that are aligned forming a curve more or less flat (regime switching probabilities given transitional variable). The curve is modelling given a logistic function...

I used scatter(style=line) but the line connects CONSECUTIVE points given their position in the sample rather than their position on the graph. Indeed, even if the pairs are aligned, when i connect pairs, i have something which is unreadable (line goings and comings)

Thanks

Re: line connecting pairs in scater plot given position on g

Posted: Thu Dec 08, 2011 9:46 am
by moderator
If I understand the question properly, you probably just need to sort the series by value. You can use a single ORDER instruction to sort both series based on the values of one of them. Then do the SCATTER on the sorted pair.

Regards,
Tom Maycock