SAS 色弱有好的瀑布图

作者: 不连续小姐 | 来源:发表于2019-08-23 01:22 被阅读2次

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!

相关文章

  • SAS 色弱有好的瀑布图

    SAS Day 44:Last time, we showed an example of Spider Plot...

  • SAS如何生成箱型图(Box-Plot) 3--临床试验分析具体

    在上一篇文章SAS如何生成箱型图(Box-Plot) 2--SAS代码介绍中介绍了,SAS中生成Boxplot的4...

  • 手把手教你Tableau绘制瀑布图(十二)

    手把手教你 Tableau 绘制瀑布图 瀑布图是由麦肯锡顾问公司所独创的图表类型,因为形似瀑布流水而称之为瀑布图。...

  • 异地驾照真难考

    老哥今天去某市车管所,想报名考驾照,结果,说是色弱不让考。 在异地,怎么就是色弱,拿出辨别色弱的一...

  • 色弱

    不得不承认,我是个无药可救的色弱症患者,万幸的是,我还不是色盲。 起初,因为写作文,...

  • SAS学习30天航线设计

    1. 1~20 天 SAS经典书籍大致梳理,制定学习框架,以导图的形式输出; 2. 21~25天 SAS软件熟悉;...

  • SAS 蜘蛛图

    SAS Day 43: Spider Plot ? Spider Plot is a powerful graph...

  • SAS 面条图

    SAS day 46: Noodle plots are line plots that may involve ...

  • SAS中数据的导入

    SAS中数据的导入 SAS中数据导入可以有四种类别 直接将数据输入SAS数据集 利用原始数据文件创建SAS数据集 ...

  • R2 | #30天专注橙长计划#~SAS~Day 04

    1.3 SAS程序的两个过程 SAS程序有两个基本模块:数据步和过程步。一个典型的SAS程序,由数据步创建SAS数...

网友评论

    本文标题:SAS 色弱有好的瀑布图

    本文链接:https://www.haomeiwen.com/subject/vfvasctx.html