BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
xxformat_com
Barite | Level 11

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;

sas_dropline1.JPG

 

2. With drawline (expected result)

sas_dropline2.JPG

 

Regards

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

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.

View solution in original post

1 REPLY 1
Jay54
Meteorite | Level 14

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.

sas-innovate-2024.png

 

Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 512 views
  • 0 likes
  • 2 in conversation