Hi,
I made a scatter plot using below code.
proc sort data=cp_new;
by Titer;
run;
PROC sgscatter DATA=CP_new;
PLOT Titer * IMC_Titer_RBD_1
/datalabel = Titer group = Titer;
RUN;
How do I:
1. Fill in the colors into the circles?
2. Make the fonts bigger?
3. Change the these pastel colors to brighter colors? The grient colors are great ideas too because these are 0, 160, 200, 400, 600, 800... levels.
4. Export the picture with higher resolution for publication purpose, e.g. 300 dpi?
Thank you very much in advance!
Here is an example to get you on the way
ods listing gpath="/home/pg/SASforum/Graphs";
ods graphics imagename="Iris example" image_dpi=300 width=12cm height=9cm;
proc sgplot data=sashelp.iris noautolegend;
format species $3.; /* Keep only 3 letters of species names as labels */
styleattrs datasymbols=(circlefilled) datacontrastcolors=(vividred vividblue palegreen);
scatter y=petalLength x=sepalLength /
jitter datalabel=species group=species datalabelattrs=(size=6);
xaxis offsetmin=0.05 offsetmax=0.05; /* Add extra space around the data area */
yaxis offsetmin=0.05 offsetmax=0.05;
run;
Here is an example to get you on the way
ods listing gpath="/home/pg/SASforum/Graphs";
ods graphics imagename="Iris example" image_dpi=300 width=12cm height=9cm;
proc sgplot data=sashelp.iris noautolegend;
format species $3.; /* Keep only 3 letters of species names as labels */
styleattrs datasymbols=(circlefilled) datacontrastcolors=(vividred vividblue palegreen);
scatter y=petalLength x=sepalLength /
jitter datalabel=species group=species datalabelattrs=(size=6);
xaxis offsetmin=0.05 offsetmax=0.05; /* Add extra space around the data area */
yaxis offsetmin=0.05 offsetmax=0.05;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.