Effective Visualizations for Credible, Data-Driven Decision Making - - PowerPoint PPT Presentation

effective visualizations for credible data driven
SMART_READER_LITE
LIVE PREVIEW

Effective Visualizations for Credible, Data-Driven Decision Making - - PowerPoint PPT Presentation

Effective Visualizations for Credible, Data-Driven Decision Making Marc Vandemeulebroecke, Mark Baillie , Charlotta Frchtenicht and Diego Saldana On behalf of the visR collaboration team http://openpharma.github.com/visR Agenda Intro and


slide-1
SLIDE 1

Effective Visualizations for Credible, Data-Driven Decision Making

Marc Vandemeulebroecke, Mark Baillie, Charlotta Früchtenicht and Diego Saldana On behalf of the visR collaboration team http://openpharma.github.com/visR

slide-2
SLIDE 2

Agenda

Intro and Motivation (Marc) Effective Visual Communication (Mark) visR - Motivation (Charlotta) visR - Prototype Example and Call for Contributors (Diego)

slide-3
SLIDE 3

Effective Visual Communication for Quantitative Scientists

slide-4
SLIDE 4

https://www.nytimes.com/2020/03/19/health/coronavirus-distancing-transmission.html

Effective visualisation is important

slide-5
SLIDE 5

We are not always good at it

slide-6
SLIDE 6

Beautiful, but effective?

https://informationisbeautiful.net/

slide-7
SLIDE 7

Beautiful and effective?

Need to #flattenthecurve

https://www.economist.com/briefing/2020/02/29/covid-19-is-now-in-50-countries-and-things-will-get-worse

slide-8
SLIDE 8

Even more effective?

https://twitter.com/CT_Bergstrom/status/1235865328074153986

slide-9
SLIDE 9

Effective data visualisation is effective visual communication

Effective graphs...

○ are visually appealing, intuitive, legible ○ use the correct graph type and axis scales ○ use proximity & alignment to facilitate comparison ○ use labels and annotations to add clarity to the message

Most importantly, effective use of visualisations

○ Enables clear and impactful communication ○ Elevates our influence with our stakeholders ○ Facilitates informed decision making

slide-10
SLIDE 10

Three laws for improving visual communication

Have a clear purpose

○ Know the purpose of creating the graph ○ Identify the quantitative evidence to support the purpose ○ Identify the audience and focus the design to support their needs

Show the data clearly

○ Avoid misrepresentation (use appropriate scales) ○ Choose the appropriate graph type to display your data ○ Maximize data to ink ratio (reduce distraction, less is more)

Make the message obvious

○ Use proximity and alignment to aid in comparisons ○ Minimize mental arithmetic (e.g. plot the difference) ○ Use colors and annotations to highlight important details

https://ascpt.onlinelibrary.wiley.com/doi/full/10.1002/psp4.12455

slide-11
SLIDE 11

Law 1 Have a clear purpose

slide-12
SLIDE 12

Have a clear purpose

Why Clearly identify the purpose of the graph, e.g. to deliver a message or for exploration? What Identify the quantitative evidence to support the purpose Who Identify the intended audience (specialists, non-specialists, both) and focus the design to support their needs Where Adapt the design to space or formatting constraints (e.g. clinical report, slide deck or publication)

https://graphicsprinciples.github.io/

slide-13
SLIDE 13

https://simplystatistics.org/2019/04/17/tukey-design-thinking-and-better-questions/

“More Questions, Better Questions

Most of the time in data analysis, we are trying to answer a question with data. I don’t think it’s controversial to say that, but maybe that’s the wrong approach? Or maybe, that’s what we’re not trying to do at first. Maybe what we spend most of our time doing is figuring out a better question.”

Tukey, Design Thinking, and Better Questions

“An approximate answer to the right question is worth a great deal more than a precise answer to the wrong question.” - John Tukey

slide-14
SLIDE 14

What type of graph do I want to create?

EXPLORATORY EXPLANATORY “I want to dig into the data” “I want to get familiar with the data” “I want to find the story in my data” “I want to communicate the results” “I want to tell the story behind the data” The audience is: YOU The audience is: SOMEONE ELSE

Credit Andrew Wright, Novartis

slide-15
SLIDE 15

Do you want your audience to play ‘Where’s Wally?’

Credit Andrew Wright, Novartis

slide-16
SLIDE 16

Law 2 Show the data clearly

16

slide-17
SLIDE 17

Show the data clearly

slide-18
SLIDE 18

Show the data clearly

https://twitter.com/YouGov/status/838750115796041728

slide-19
SLIDE 19

Choosing the Correct Graph Type Aids in interpretation

Deviation Correlation Ranking Distribution Evolution Part-to-whole Magnitude

  • Chg. from

baseline Scatter plot Horizontal bar chart Boxplot Kaplan Meier Stacked bar chart Vertical bar chart Waterfall Heat map Dotplot Histogram Line plot Tree map Forest plot

https://graphicsprinciples.github.io/

slide-20
SLIDE 20

Choosing the Correct Graph Type Aids in interpretation

slide-21
SLIDE 21

Choose the right scale for your data

Avoid plotting log-normally distributed variables on a linear scale (e.g. hazard ratio, AUC, CL)

https://graphicsprinciples.github.io/

slide-22
SLIDE 22

Space measurements proportional to the time between each

Measurements displayed close together are perceived to be closer in time

https://graphicsprinciples.github.io/

slide-23
SLIDE 23

Law 3 Make the message obvious

slide-24
SLIDE 24

Try not to set text at an angle

Think of alternatives such as transposing the graph

https://graphicsprinciples.github.io/

slide-25
SLIDE 25

Avoid unnecessary color...

Avoid using color to differentiate between categories of the same variable

https://graphicsprinciples.github.io/

slide-26
SLIDE 26

Only use color when it adds value

Use a bold, saturated or contrasting color to emphasize important details

https://graphicsprinciples.github.io/

slide-27
SLIDE 27

Use informative labels and annotations to support the message

https://graphicsprinciples.github.io/

slide-28
SLIDE 28

Genetic marker positive is not predictive of treatment response

The average treatment effect is similar in both the genetic marker positive and negative subgroups and does not warrant further investigation

Genetic marker positive Genetic marker negative

Treatment benefit

slide-29
SLIDE 29

Principles for effective visual communication

https://graphicsprinciples.github.io/

slide-30
SLIDE 30

Where to find to out more?

https://socviz.co/ https://serialmentor.com/dataviz/ https://www.principiae.be/book/

slide-31
SLIDE 31

Effective data visualisation is effective visual communication

Effective visualisations

○ enable clear and impactful communication, ○ elevate our influence with our stakeholders, ○ facilitate informed decision making.

To help design effective visualisations, remember the three laws: purpose, clarity and message

slide-32
SLIDE 32

Handover

https://twitter.com/EricTopol/status/1236001710507585536

slide-33
SLIDE 33

Implementing visual principles in a reproducible way is tedious, but essential at any step of a clinical development project – starting with the first exploratory analyses

Problem Styling and annotating plots is time consuming, so most exploratory analyses do not adhere to these principles thus creating additional work downstream

slide-34
SLIDE 34

Figures and tables in reports should always have:

  • Title
  • Dataset source & version
  • Abbreviations
  • Statistical tests
  • Sample size
  • Harmonized color theme across
  • utputs (e.g., same color by

treatment group)

Reproducible Reporting

Essential meta data needs to be part of the rendered object as to not get lost Additional context can to be provided as a separate numbered caption in the report

Example: Table Shell for Baseline Demographics Requirements

slide-35
SLIDE 35

Development Considerations

Integrate graphical principles in your analytics projects Seamless integration into analytics & reporting workflows Combination of ease of use with flexibility for complex analyses Adaptable to target audiences without repeating core analysis Export outputs (plots & tables) to a variety of formats Explore different visualisations of analytic data set Suitable for analytics use cases in clinical/ medical development

slide-36
SLIDE 36
  • R increasingly popular as programming

language in clinical development

  • Excellent existing packages solving

parts of the problem that we can build upon

  • Flexible towards multiple analyses

questions and stages in the workflow

  • Allows full documentation and examples
  • Functions can be tested and versioned
  • Open source so everyone can use the

package and contribute to future development

Why an R Package?

slide-37
SLIDE 37

Package Architecture

visR::plot_x() visR:: style_x() Input data Wrapper for typical analyses visR::plot_attrition etc.

Use existing functions/packages where possible

Convenience functions to aggregate data and estimate models*

*Functions for survival models, p-values, confidence intervals,... … make available separately & allow to call on patient-level data

Styles should be adaptable to corporate designs

  • Should integrate seamlessly into

tidyverse

○ Re-use established tools where possible ○ Interact with dplyr and modeling packages ○ Plotting should build on ggplot2

  • Full transparency on data

modification

  • Multiple rendering and styling
  • ptions to allow for various output

formats (html, pdf, word, …)

slide-38
SLIDE 38

Basic Architecture

  • Fixed input data models for:

○ Estimator function: computes estimates, as well as upper and lower bounds, p-values, etc. ○ Visualization function: visualizes data as a plot or a table (or something else). ○ Style function: applies common theme and color palettes to all outputs

  • Broom can handle different variations of survival plot (KM, cumulative incidence, etc).
  • We could define custom time windows (e.g. three years).
  • We could also add the p-value (with custom hypothesis tests, mentioned in the footnote).

Estimator Function Visualization Function + Style Function trt time status time trt estimate lower upper Interim (estimate) data model (e.g. broom) Input data model (a data.frame / tibble) Visualization

slide-39
SLIDE 39

Typical Time To Event Analysis Workflow

1 B u i l d A n a l y s i s C

  • h
  • r

t

H

  • w

m a n y p a t i e n t s a r e k e p t a f t e r a p p l y i n g i n c l u s i

  • n

/ e x c l u s i

  • n

c r i t e r i a ?

2 B a s e l i n e C h a r a c t e r i s t i c s

W h a t a r e t h e g e n e r a l c h a r a c t e r i s t i c s

  • f

t h e p

  • p

u l a t i

  • n

w e a r e a n a l y z i n g ?

3 E s t i m a t e S u r v i v a l F u n c t i

  • n

W h a t i s t h e p r

  • b

a b i l i t y

  • f

a p a t i e n t h a v i n g s u r v i v e d a t t i m e t g i v e n h i s / h e r s t r a t u m ?

Typical Output

Attrition

  • Table
  • Flow chart

Summary

  • “Table One”

Kaplan-Meier

  • Kaplan-Meier Plot
  • Median Survival
slide-40
SLIDE 40

1 Build Analysis Cohort

Create list of filters and description to easily evaluate step-wise attrition in the original cohort. Table is annotated with critical metadata including title and data source

slide-41
SLIDE 41

1 Build Analysis Cohort (II)

Quickly convert attrition table into flow diagram

created by vr_attrition_table.R

Can help to comply with reporting guidelines like CONSORT and STROBE.

slide-42
SLIDE 42

2 Baseline Characteristics

  • Summary statistics can be calculated

and displayed in a table

  • Level of detail on summary stats can be

easily adapted using in-built or custom summary functions

  • Output available as kable, Rstudio gt or

DT html tables with and without download feature Rendering as gt table Rendering as dt table

slide-43
SLIDE 43

3 Survival Analysis

  • Based graphical principles on findings

from a survey and paper by Morris et

  • al. conducted among 1176 researchers

about what the perfect Kaplan-Meier plot should look like

  • KM plot shows relevant information

such as number of patients, axis labels (with units where needed), data source.

  • Risk table shows num. at risk, events,

censored, by stratum at regular timepoints.

slide-44
SLIDE 44

3 Survival Analysis (II)

estimation plotting estimation plotting Kaplan-Meier Curve Risk Table Kaplan-Meier Curve + Risk Table wrapper

  • r
slide-45
SLIDE 45

3 Survival Analysis (III)

  • We have also implemented other convenient

estimation functions.

  • Median survival times by stratum.
  • Multiple methods for testing equality between

strata.

slide-46
SLIDE 46

Package Roadmap

December 2019 Develop Prototype

  • Implementation of
  • utputs for a typical

Time to Event analysis

April 2020 Launch & Find Collaborators

  • Present prototype to

stakeholders

  • Recruit additional

collaborators to drive development

Q2/Q3 2020 Scale Development

  • Refine architecture and design

choices

  • Continue implementation of plot

and table types following graphical principles

Project Kick Off

  • Definition of needs

and requirements

  • Agreement on basic

architecture

slide-47
SLIDE 47

Looking for Contributors: Join the visR Team

visR is still in its experimental phase and we are looking for partners to further develop the package!

  • Add feedback/ideas for features using

github issues

  • Contribute code the open source-way:

pick an issue & work on it

  • Reach out to us to join core team

How to reach out? Email: mark.baillie@novartis.com & james.black.jb2@roche.com

What contributions are we looking for?

  • Design choices
  • Project governance
  • Hands on engineering
  • Help maintain an actively used package
slide-48
SLIDE 48

visR http://openpharma.github.com/visR Graphics Principles https://graphicsprinciples.github.io/

Acknowledgements

Acknowledgements

Survival, DT Datatables, kable & kableExtra, ggpubr, and many more

Acknowledgments Thanos Siadimas, Pawel Kawski, James Black, Janine Hoffart, Baldur Magnusson, Alison Margolskee How to reach out? Email: mark.baillie@novartis.com & james.black.jb2@roche.com