line connecting pairs in scater plot given position on graph

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
Aktar
Posts: 35
Joined: Thu Apr 16, 2009 8:12 am

line connecting pairs in scater plot given position on graph

Unread post 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
moderator
Site Admin
Posts: 269
Joined: Thu Oct 19, 2006 4:33 pm

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

Unread post 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
Post Reply