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;
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.
Can you share what your output looks like?
(use the 'Photo' capability when adding a comment)
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.