SAS绘制流程图
CSR中的第一张表格往往会是一张流程图,那么使用SAS如何绘制流程图,我们一起来看看。
SAS ANNOTATION FUNCTIONS:
|
|
Macro to use | Tasks |
---|---|
%ARROW(x1, y1, x2, y2, color, line, size, angle, style); | Draw an arrow |
%RECT(x 1,y 1,x 2,y 2, color, line, size); | Draw a rectangle |
%LABEL(x, y, text, color, angle, rotate, size, style, position); | Draw text |
%ARROW(x1, y1, x2, y2, color, line, size, angle, style);
Function: Draws an arrow from (X1, Y1) to (X2,Y2).
Parameter
line: specifies the length of the sides of the arrowhead
size: specifies the width of the line
angle: specifies the angle of the tip of the arrowhead
style:specifies the type of arrowhead
%RECT(x 1,y 1,x 2,y 2, color, line, size); Function: Draws a rectangle with diagonal corners at two specified points. Parameters
line: specifies the rectangle’s line type
%LABEL(x, y, text, color, angle, rotate, size, style, position); Function: Places a text label at the specified coordinates Parameters angle: specifies the angle of the text string with respect to the horizontal rotate: specifies the rotation angle of each character in the text string size: specifies the size of the text string style: specifies the text font position: specifies the placement and alignment
|
|
最后看一下我们输出的流程图。
从上面的代码中可以看出,我们需要标记清楚每一个点的坐标,但是这样无疑是很复杂的,所以SAS虽然可以实现绘制流程图,但是并不建议临床项目当中使用SAS来绘制。
文章作者 阿Q
上次更新 2021-12-13
许可协议 原创文章,如需转载请注明文章作者和出处。谢谢!