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!

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,458评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,968评论 0 23
  • 意式咖啡的制作和机器有很大关系,一杯完美的意式咖啡就象一张优秀的唱片一样可以称得上是艺术和科技的结合,极果君今天请...
    极果阅读 690评论 0 3
  • 一、现代文明 当耶稣开始倒立 脖子上串成一圈的尸体 以头颅测量方向 一支金筷子试图 搅拌瓷碗中的轮胎 时钟在睡梦中...
    子健阅读 430评论 0 2
  • 今日体验:今天早上又把奥迪Q7火花塞拆了一遍,倒入药液泡了一会有明显的效果,试车时没有报故障。 核...
    GL_212a阅读 80评论 0 0