BookmarkSubscribeRSS Feed
Jinlf
Calcite | Level 5
proc template; define statgraph sgdesign; dynamic _VISIT _VALUE _GROUP _VISIT2 _VALUE2 _GROUP2 _UCL _LCL _VALUE3; begingraph / designwidth=731 designheight=524; entrytitle halign=center 'ABCD'; layout lattice / rowdatarange=data columndatarange=data rowgutter=10 columngutter=10; layout overlay / wallcolor=CXE8E6E8 xaxisopts=( offsetmin=0.1 offsetmax=0.1 label=('IJKL')) yaxisopts=( label=('EFGH')); seriesplot x=_VISIT y=_VALUE / group=_GROUP name='series' connectorder=xaxis lineattrs=(thickness=3 ); scatterplot x=_VISIT2 y=_VALUE2 / group=_GROUP2 datalabel=_VALUE3 yerrorupper=_UCL yerrorlower=_LCL name='scatter' clusterwidth=0.5 labelstrip=true datalabelposition=TOPLEFT markerattrs=(symbol=CIRCLEFILLED size=11 ) datalabelattrs=(size=12 ); endlayout; sidebar / align=bottom spacefill=false; discretelegend 'scatter' / opaque=true backgroundcolor=CXE8E6E8 border=true halign=center valign=bottom displayclipped=true across=2 order=rowmajor titleattrs=(size=14 ); endsidebar; endlayout; endgraph; end; run; proc sgrender data=WORK.AAAA template=sgdesign; dynamic _VISIT="VISIT" _VALUE="VALUE" _GROUP="GROUP" _VISIT2="VISIT" _VALUE2="VALUE" _GROUP2="GROUP" _UCL="UCL" _LCL="LCL" _VALUE3="VALUE"; run;
无标题.png
3 REPLIES 3
Jinlf
Calcite | Level 5
data aaaa; input group visit value lcl ucl; cards; 1 1 50 49 52 1 2 56 55 60 1 3 60 56 63 1 4 68 64 70 2 1 45 42 51 2 2 47 44 53 2 3 51 45 55 2 4 58 55 65 ; run;
ballardw
Super User

Which version of SAS are you using? There are significant changes in options in SAS 9.2, 9.3 and 9.4.

Jinlf
Calcite | Level 5
my sas version is 9.4.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 997 views
  • 0 likes
  • 2 in conversation