BookmarkSubscribeRSS Feed
daszlosek
Quartz | Level 8

 

Hello Everyone,

 

I am trying to rename the labels for my graph so that they read "Cohort I," "Cohort II" instead of "Proportions 0.09648 0.06272," "0.09365 0.06555,", etc. Is there an easy way to do this?

 

 

Here is my code and I have also attatched a PNG of the graph:

 

 

Proc power;
twosamplefreq test = pchi
sides = 2
alpha = 0.05
groupproportions = (0.09648, 0.06272) /*35*/
(0.09365, 0.06555) /*30*/
(0.09097, 0.06823) /*25*/
(0.08844, 0.07076) /*20*/
(0.08605, 0.07315) /*15*/
(0.08379, 0.07541) /*10*/
(0.08164, 0.07756) /*05*/
ntotal = 0 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000 3200 3400 3600 3800 4000 4200
4400 4600 4800 5000 5200 5400 5600 5800 6000 6200 6400 6600 6800 7000 7200 7400 7600 7800 8000 8200 8400 8600 8800
9000 9200 9400 9600 9800 10000 10200 10400 10600 10800 11000 11200 11400 11600 11800 12000 12200 12400 12600 12800
13000 13200 13400 13600 13800 14000 14200 14400 14600 14800 15000 15200 15400 15600 15800 16000 16200 16400 16600
16800 17000 17200 17400 17600 17800 18000 18200 18400 18600 18800 19000 19200 19400 19600 19800 20000
power = .;

title 'Cohort 1 / 35% - 5% RRR';
plot
x =N
min = 200
max = 8000
xopts = (ref = 3514 crossref = yes)
vary(color);
/*ODS Output PlotContent = want;*/

run;

 

 

Thank you!

 

PowerPlot45.png
1 REPLY 1
ballardw
Super User

To control plot appearance I would be tempted to sent the plot info to a data set and plot that where I could and a label variable and have more control over legends and axis appearance.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 1018 views
  • 0 likes
  • 2 in conversation