SAS:如何用几行代码为每个定量变量绘制箱线图

SAS: how to plot boxplots for each quantitative var in few lines of code

我有一个定性变量 ("Group") 和 38 个定量变量(一些化学元素:Al、Mg、K、Cu...):我想为每个定量变量绘制一个箱线图针对定性变量(例如 y 轴 = Al,x 轴 = 组)但在一行(或几行)代码中,而不是键入此

 proc boxplot data= Dataana.Pot;
plot Al*Group;
run;

38 次使用不同的元素。

我该怎么做? 非常感谢!

RTM

PLOT (analysis-variables)*group-variable <(block-variables )> <=symbol-variable> </ options > ;