SAS 色弱有好的瀑布圖

SAS Day 44:
Last time, we showed an example of Spider Plot for subjects response over time. Waterfall plot visualizes the best overall response in tumor size in each participating subjects oncology studies. Each of the bars in the plot describes the percentage of change (growth or reduction) in the target lesions as compared to the baseline measurements for each subject.

image

Sample Response Dataset:

The data of Waterfall has been sorted in descending order of the variable Percent_change. This shows the responses with respect to tumor growth or shrinkage in the order of magnitude of treatment response.

image

Sample Waterfall Plot:

image

Sample Code:

proc sort data=f; by descending pchg;
run;

ods results;
proc sgplot data=f noautolegend;
styleattrs datacolors=(blue green) datacontrastcolors=(black);
Vbar n1/ response=pchg transparency=0.2 name="resp"
group=group groupdisplay=cluster

nooutline datalabel=group datalabelattrs=(weight=bold size=9)datalabelpos=bottom;
xaxis display=none;
yaxis label="Maximum %Change from Baseline" labelattrs=(weight=bold size=9)
values=(-100 to 100 by 20) max=120;
Title "Sample Waterfall Plot";
*keylegend"resp"/noborder title="" location= inside position=top down=4;
refline 20-30 / axisy=y lineattrs=(color=red);
run;

Note:

we use the Red Line to represent the Recisist Algorithm, (Progression Disease, Partial Response, Complete Response, Stable Disease)

**Recisit 1.1 Criteria **

PD: Tumor Size Increase by 20% from baseline or more
PR: Tumor Size Decrease by 30% from baseline or more
CR: Tumor disappear
SD: Neither PD Nor PR

??Bonus Color Trick:

The color Scheme Blue and Yellow is to be color-blind friendly. ?
Avoid these Color Combination in order to be Color-blind friendly(為了讓有色弱的朋友也能有很好的看圖體驗肯夏,我們盡量不要用這幾種配色)

  • Red & green (紅 +綠)
  • Green & brown(綠+ 土)
  • Green & blue (綠+藍)
  • Blue & gray (綠+灰)
  • Blue & purple (藍+紫)
  • Green & gray (綠+灰)
  • Green & black (綠+黑)

Thanks to wei zhao for sharing this considerate thought with me.

Summary:

The waterfall plot clearly demonstrated Group A patients have a better response rate than Group B patients because the tumor size shrank 6/7 patient in Group A. Hopefully, scientists can develop the drug to cure cancer soon!

Reference:

https://www.researchgate.net/publication/264010059_Understanding_Waterfall_Plots

https://venngage.com/blog/color-blind-friendly-palette/

https://www.pharmasug.org/proceedings/2012/DG/PharmaSUG-2012-DG13.pdf

Happy SAS Coding!

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子驯击,更是在濱河造成了極大的恐慌烁兰,老刑警劉巖,帶你破解...
    沈念sama閱讀 217,657評論 6 505
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件徊都,死亡現(xiàn)場離奇詭異沪斟,居然都是意外死亡,警方通過查閱死者的電腦和手機暇矫,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,889評論 3 394
  • 文/潘曉璐 我一進店門主之,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人李根,你說我怎么就攤上這事槽奕。” “怎么了房轿?”我有些...
    開封第一講書人閱讀 164,057評論 0 354
  • 文/不壞的土叔 我叫張陵史翘,是天一觀的道長。 經常有香客問我冀续,道長琼讽,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,509評論 1 293
  • 正文 為了忘掉前任洪唐,我火速辦了婚禮钻蹬,結果婚禮上,老公的妹妹穿的比我還像新娘凭需。我一直安慰自己问欠,他們只是感情好,可當我...
    茶點故事閱讀 67,562評論 6 392
  • 文/花漫 我一把揭開白布粒蜈。 她就那樣靜靜地躺著顺献,像睡著了一般。 火紅的嫁衣襯著肌膚如雪枯怖。 梳的紋絲不亂的頭發(fā)上注整,一...
    開封第一講書人閱讀 51,443評論 1 302
  • 那天,我揣著相機與錄音度硝,去河邊找鬼肿轨。 笑死,一個胖子當著我的面吹牛蕊程,可吹牛的內容都是我干的椒袍。 我是一名探鬼主播,決...
    沈念sama閱讀 40,251評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼藻茂,長吁一口氣:“原來是場噩夢啊……” “哼驹暑!你這毒婦竟也來了玫恳?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 39,129評論 0 276
  • 序言:老撾萬榮一對情侶失蹤优俘,失蹤者是張志新(化名)和其女友劉穎纽窟,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體兼吓,經...
    沈念sama閱讀 45,561評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡臂港,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 37,779評論 3 335
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了视搏。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片审孽。...
    茶點故事閱讀 39,902評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖浑娜,靈堂內的尸體忽然破棺而出佑力,到底是詐尸還是另有隱情,我是刑警寧澤筋遭,帶...
    沈念sama閱讀 35,621評論 5 345
  • 正文 年R本政府宣布打颤,位于F島的核電站,受9級特大地震影響漓滔,放射性物質發(fā)生泄漏编饺。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,220評論 3 328
  • 文/蒙蒙 一响驴、第九天 我趴在偏房一處隱蔽的房頂上張望透且。 院中可真熱鬧,春花似錦豁鲤、人聲如沸秽誊。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,838評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽锅论。三九已至,卻和暖如春楣号,著一層夾襖步出監(jiān)牢的瞬間最易,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,971評論 1 269
  • 我被黑心中介騙來泰國打工竖席, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留耘纱,地道東北人敬肚。 一個月前我還...
    沈念sama閱讀 48,025評論 2 370
  • 正文 我出身青樓毕荐,卻偏偏與公主長得像,于是被迫代替她去往敵國和親艳馒。 傳聞我的和親對象是個殘疾皇子憎亚,可洞房花燭夜當晚...
    茶點故事閱讀 44,843評論 2 354

推薦閱讀更多精彩內容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,325評論 0 10
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 9,495評論 0 23
  • 意式咖啡的制作和機器有很大關系第美,一杯完美的意式咖啡就象一張優(yōu)秀的唱片一樣可以稱得上是藝術和科技的結合蝶锋,極果君今天請...
    極果閱讀 680評論 0 3
  • 一、現(xiàn)代文明 當耶穌開始倒立 脖子上串成一圈的尸體 以頭顱測量方向 一支金筷子試圖 攪拌瓷碗中的輪胎 時鐘在睡夢中...
    子健閱讀 408評論 0 2
  • 今日體驗:今天早上又把奧迪Q7火花塞拆了一遍什往,倒入藥液泡了一會有明顯的效果扳缕,試車時沒有報故障。 核...
    GL_212a閱讀 75評論 0 0