哪位大神会用sas软件画散点图、饼状图等呀?求助求助求助呀~

2026年09月26日 21:32
有1个网友回答
网友(1):

饼图:
goptions reset=all cback=white border htitle=12pt htext=10pt;

title1 "Types of Vehicles Produced Worldwide";

proc gchart data=sashelp.cars;
pie type / other=0
midpoints="Truck" "SUV" "Sedan" "Wagon" "Sports" "Hybrid"
value=none
percent=arrow
slice=arrow
noheading
plabel=(font='Albany AMT/bold' h=1.3 color=depk);
run;
quit;

散点图:
proc sgplot data=sashelp.class;
scatter x=height y=weight / group=sex;
run;