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)
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.