BookmarkSubscribeRSS Feed
p9jain
Calcite | Level 5

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

7 REPLIES 7
ballardw
Super User

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

p9jain
Calcite | Level 5

  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
Rick_SAS
SAS Super FREQ

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

Rick_SAS
SAS Super FREQ

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;

p9jain
Calcite | Level 5

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.

Rick_SAS
SAS Super FREQ

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.

p9jain
Calcite | Level 5

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 7 replies
  • 1112 views
  • 0 likes
  • 3 in conversation