BookmarkSubscribeRSS Feed
ethom1906
Calcite | Level 5

I am trying to create a series of line charts.  I created two in gplot using the JOIN option.  When I try to create the next two using the same option, SAS only produces bar charts.  The code below gives me a bar chart instead of a line.

 

symbol1 color=black
interpol=join;

symbol2 color=red
interpol=join;

title "VetPop2018 vs VetPop2016 - State=37";
proc gplot data=vp18_vp16;
where st = "37";
plot (vp18_male vp16_male)*year / skipmiss overlay legend=legend;
run;

4 REPLIES 4
Reeza
Super User
Any specific reason to not use SGPLOT here? It's a lot more intuitive and better graphics. SAS/Graph, G-Procedures are outdated.
ethom1906
Calcite | Level 5

I used sgpot -- the first set came out as lines, the second set were bar charts.  I don't know what's different - same syntax.  The data are numeric.

Reeza
Super User
Show your code. If you can't provide sample data perhaps consider using a SASHELP data set like class or heart.

The SAS examples are pretty clear IMO
https://documentation.sas.com/?docsetId=grstatproc&docsetVersion=9.4&docsetTarget=n1vkttjoy99wkwn1iy...
GraphGuy
Meteorite | Level 14

Can you share what your output looks like?

(use the 'Photo' capability when adding a comment)

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1224 views
  • 0 likes
  • 3 in conversation