Hi,
is there an option to stop the dropline at the axis?
I found alternative solution using drawline but i wouldnice to have directly the option in dropline or so.
1. With dropline (missing the option)
proc template;
define statgraph class;
begingraph;
layout overlay
/ xaxisopts=(linearopts=(origin=60))
yaxisopts=(linearopts=(origin=100))
walldisplay=none;
scatterplot x=height y=weight;
dropline x=72 y=150
/ dropto=both
lineattrs=(color=blue pattern=dot)
label='72,150';
endlayout;
endgraph;
end;
run;
proc sgrender data=sashelp.class template=class ;
run;
2. With drawline (expected result)
Regards
Yes, you have found a shortcoming in the axis origin feature that has not been reported so far. I suspect the combination of axis origin with drop line has not been used often. DrawLine would work where you provide the start and end coordinates. Alternate plot statement would be a VECTORPLOT, where again you provide the coordinates, but at least the data is in the same data set for consistency.
Yes, you have found a shortcoming in the axis origin feature that has not been reported so far. I suspect the combination of axis origin with drop line has not been used often. DrawLine would work where you provide the start and end coordinates. Alternate plot statement would be a VECTORPLOT, where again you provide the coordinates, but at least the data is in the same data set for consistency.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.