Hi community,
I´m new in this forum, so bare with me.
I´m testing PROC SGPLOT from SAS Studio, university edition. I want to produce an HTML file, with some graphics embedded. But in stead of showing the graphic in the HTML file, it only shows a small icon with an 'X'.
I tried this code:
ods html path="&path" body='test.html' (url=none);
ods graphics / reset imagefmt=jpeg ;
data one;
input trt_group time subject results;
datalines;
1 2 100 20
1 4 100 30
1 6 100 35
1 8 100 50
1 2 200 40
1 4 200 25
1 6 200 40
1 8 200 30
1 2 300 25
1 4 300 40
1 6 300 45
1 8 300 55
2 2 400 15
2 4 400 35
2 6 400 50
2 8 400 45
2 2 500 35
2 4 500 35
2 6 500 20
2 8 500 35
;
run;
proc sgplot data=one;
title 'Study Results by Treatment Group';
series x=time y=results / group=subject grouplc=trt_group name='grouping';
keylegend 'grouping' / type=linecolor;
run;
ods html close;
Any suggestions? Is it an 'university edition' issue?
Kind regards
See if moving the URL=NONE to immediately after the PATH="&path" helps.
See if moving the URL=NONE to immediately after the PATH="&path" helps.
Thanks a lot ballardw - it worked just fine 🙂
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.