![]() ODS Graphics assigns the style element GraphData1 to the first group, GraphData2 to the second group, and GraphData3 to the third group. This is the same order as the Group variable, which is specified in the COLORGROUP= option in the YAXISTABLE statement. While the other values are not shown, they do in fact appear in alphabetical order: Setosa, Versicolor, and then Virginica. The Species variable, which is the group variable in the REG statement, begins with Setosa. That was my final program not my starting point. ![]() An attribute map ensures that the two parts of the graph use consistent colors. It was created by merging the data set that contained the data for the regression and the data that contained the parameter estimates for the axis table while adding the row coordinates. The invisible part is the scatter plot that provides coordinates for the rows of the axis table. The visible part of the graph consists of a regression fit plot that is produced by the REG statement and a table of parameter estimates that is produced by the YAXISTABLE statement. Setosa is the blue group, Versicolor is the red group, and Virginica is the green group. The table in the top right provides regression coefficients, but it also provides a legend for the graph. Yaxistable group Int Slope / y=row y2axis colorgroup=group attrid=variety ![]() Reg y=sepallength x=petallength / group=species attrid=variety Scatter y=row x=petallength / y2axis markerattrs=(size=0) Proc sgplot data=all dattrmap=attrmap noautolegend ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |