BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DmytroYermak
Lapis Lazuli | Level 10

Hi all,

 

Could you please advise how to make Graph area wider in Proc sgplot. Or should it be defined somewhere else?

 

large (2).jpg

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenKuhfeld
Rhodochrosite | Level 12

ods graphics on / width=8in height=5in;

 

Specify both height and width.  If you specify one, the other scales proportionately.

View solution in original post

3 REPLIES 3
WarrenKuhfeld
Rhodochrosite | Level 12

ods graphics on / width=8in height=5in;

 

Specify both height and width.  If you specify one, the other scales proportionately.

DmytroYermak
Lapis Lazuli | Level 10

Thank you!

DmytroYermak
Lapis Lazuli | Level 10

Final code (if someone is interested):

proc sgplot data=F1 noautolegend;

   styleattrs datacontrastcolors=(black)
               datasymbols=(trianglefilled circlefilled squarefilled diamondfilled triangle circle square diamond)
               datalinepatterns=(solid); 

   scatter x=PCTPT y=mean / group=TRT01A
							grouporder=data
                            yerrorlower=lower                                                                                            
                            yerrorupper=upper
                            name = "Scatter" ;                                                                               
   series x=PCTPT y=mean /  markers group=TRT01A name = "Series";

   xaxis type = discrete;
   yaxis type = log;

   keylegend "Series"  / location=outside position=topright across=1 noborder;
   format PCTPT $PCTPTF.;
 
run;  

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 11885 views
  • 3 likes
  • 2 in conversation