PROC SGPANEL-Line plot

Reply
Occasional Contributor
Posts: 7

PROC SGPANEL-Line plot

Hi,

I am using PROC SGPANEL to create a Line plot and I don't need parallel Y and X axis. How could it can be avoid?

Thanks

Regards,

Priyanka

Super User
Posts: 11,343

Re: PROC SGPANEL-Line plot

It may be helpful to post the code you are using.

Occasional Contributor
Posts: 7

Re: PROC SGPANEL-Line plot

  Hi,

I am using below code:

PROC SGPANEL data = dummy noautolegend ;

     PANELBY day / noborder ;

     SERIES  x = T y = C/ LINEATTRS   = (COLOR = black PATTERN = 1);

     SCATTER x = T y = C/ MARKERATTRS = (SYMBOL= circlefilled) ;

   run;

I have attached the required output in whihc I have highlighted the Line (I need to remove-black line) in red color.

please let me know if we can get similar output.


example521.png
SAS Super FREQ
Posts: 3,755

Re: PROC SGPANEL-Line plot

You don't need both the SERIES and SCATTER statements. Use the MARKERS and MARKERATTRS on the SERIES statement to simplify your code.

SAS Super FREQ
Posts: 3,755

Re: PROC SGPANEL-Line plot

I'm still confused. You want to remove the red lines?  Are you saying that you want to overlay the two curves on a single plot?  If so, use the SGPLOT procedure and the GROUP= option, rather than the SGPANEL procedure:

PROC SGPLOT data = dummy;

     SERIES  x = T y = C / group=day LINEATTRS   = (COLOR = black PATTERN = 1)

          markers MARKERATTRS = (SYMBOL= circlefilled) ;

   run;

Occasional Contributor
Posts: 7

Re: PROC SGPANEL-Line plot

I need to remove black line (red lines are highlighted just for reference to refer black line).

I need side by side plot not overlay plot.

SAS Super FREQ
Posts: 3,755

Re: PROC SGPANEL-Line plot

Look at the UNISCALE= option on the PANELBY statement.

SAS(R) 9.3 ODS Graphics: Procedures Guide, Third Edition

By default, all of the column axes and row axes are on the same scale, but you can change that.

Occasional Contributor
Posts: 7

Re: PROC SGPANEL-Line plot

Sorry its not working ....Please look in to the my another post included code and required output

Ask a Question
Discussion stats
  • 7 replies
  • 265 views
  • 0 likes
  • 3 in conversation