Hi, I want to create a graph showing linked scatterplots between observations, linked by ID. I came across the command
created by Nick Cox. However, I want to step up the complexity of the graph by stratifying the linkplots by an observation, but I can't find a way to do that, neither with pairplots. Is that possible? How can I overlay the two linkplots into a graph like twoway graphs?
Here's a sample dataset to what I'm doing:

Now, I want to stratify the link plots by sex (male vs female), how can I do that? Is that possible?
Thank you very much in advance
Code:
linkplot
Here's a sample dataset to what I'm doing:
Code:
sysuse bplong, clear linkplot bp when, link(patient)
Now, I want to stratify the link plots by sex (male vs female), how can I do that? Is that possible?
Thank you very much in advance
Comment