I am attempting to plot a fourth variable on a plot using the pointlabel statement. It works essentially, but I cannot figure out why the lines are interconnecting between the different values of my fourth variable and why there are multiple labels around a single data point. Below is the code I used to generate the attached graph. I appreciate any help or insight anyone can provide - Thanks!
proc sort data=repeatedall;
symbol v=dot i=join pointlabel= ('#cen_reg') ;
axis1 label = ('predicted') order = (0 to 1 by 0.1);
legend1 position=(inside top right) down=3 label=none;
There are several different ways to arrange/organize your data, and different ways to plot it with gplot.
You might need to take a slightly different approach, depending on exactly what you're wanting to plot.
In general, if you are getting lines connecting things in your plot that you don't want connected, you can insert some sas 'missing values' into the data, and then use gplot's "skipmiss" option to have it put a gap in the line (not connect the points) where it hits a missing value.
Something like the following (untested pseudo-code) ...
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.