Help using Base SAS procedures

Incorporate showing Grid lines and graph a y=x reference line into a working JSL

Reply
Occasional Learner
Posts: 1

Incorporate showing Grid lines and graph a y=x reference line into a working JSL

Hello,

I have a working JSL script which takes some parameters and plots y vs. x through an if loop that ensures the y param and x param of interest are analyzed through Bivariate model. The script plots the data per my expectation. I would like some guidance on the following:

1) Incorporate showing major grid lines

2) Add a y =x reference line to every plot.

I'm able to do both manually, but would like to have it as part of the JSL.

//for loop for all y axis parameters
   For( j = 1, j < yaxis_number + 1, j++,
    Current Data Table( dt );
    Title = Char( yaxis_list );
    new_yaxis = Title;
    old_yaxis = Title;
    Substitute Into( new_yaxis, Regex( old_yaxis, "_remove_my_text_" ), "" );

  //check if x parameter and y parameter are of same category/type
    If( new_xaxis == new_yaxis,
     Bivariate(
      Y( :As Name( old_yaxis ) ),
      X( :As Name( old_xaxis ) ),
      By( :VDD ),
         
      Fit Line( {Line Color( {213, 72, 87} )} )
     ),
   


    ); //end of checking if xaxis same category/type as yaxis

    );//end of for loop for all yaxis

Ask a Question
Discussion stats
  • 0 replies
  • 204 views
  • 0 likes
  • 1 in conversation