Skip to contents

This guide provides a detailed overview of the scatterplot module and its features. It is meant to provide guidance to App Creators on creating Apps in DaVinci using the scatterplot module. Walk-throughs for sample app creation using the module are also included to demonstrate the various module specific features.

The scatterplot module makes it possible to visualize a scatterplot of two biomarkers with different levels of grouping.

Pre-requisite:


“Parameter” Term Disambiguation

The guide uses the term “parameter” at several places. This term in the guide represents clinical analysis parameters and values such as laboratory values, safety values, etc as used in the clinical dataset context. This can be confused with the word parameter as used in a programming context - “parameters of a function”. Therefore, to fully disambiguate the usage in this guide:

  • Parameter is used exclusively in the clinical dataset context
  • Argument is used to represent parameter of a function in the programming context


Features

scatterplot features the following plot and tables:

  • A scatterplot with different custom groupings showing a regression line.
  • A table showing the population listing of the selected points in the chart.
  • A table showing summary data about the regression and correlation between the parameters

It supports bookmarking.

Arguments for the module

dv.explorer.parameter::mod_scatterplot() module uses several arguments with the following being mandatory and the rest optional. As part of app creation, the app creator should specify the values for these arguments as applicable.

Mandatory Arguments

Refer to dv.explorer.parameter::mod_scatterplot() for the complete list of arguments and their description.

Input menus

A set of menus allows to select a set of parameters, groupings and settings of the visualization.

Visualizations

Scatterplot

This visualization consists of a scatterplott based on the set of parameters and grouping variable. The chart includes an orientative regression line with 95% C.I.

Tables

Population listing

A table containing a listing of the population selected by brushing in the scatterplot.

Estimates table

A table containing a set of statistics regarding the regression and correlation.

Creating a boxplot application

adbm_dataset <- dv.explorer.parameter::adbm_example %>%
  dplyr::mutate(
    USUBJID = factor(USUBJID),
    PARCAT1 = factor(PARCAT1),
    PARAM = factor(PARAM),
    AVISIT = factor(AVISIT)
  )

adsl_dataset <- dv.explorer.parameter::adsl_example %>%
  dplyr::mutate(USUBJID = factor(USUBJID))

dv.manager::run_app(
  data = list(dummy = list(adbm = adbm_dataset, adsl = adsl_dataset)),
  module_list = list(
    Scatterplot = dv.explorer.parameter::mod_scatterplot(
      "scatterplot",
      bm_dataset_name = "adbm",
      group_dataset_name = "adsl",
      subjid_var = "USUBJID",
      cat_var = "PARCAT1"
    )
  ),
  filter_data = "adsl",
  filter_key = "USUBJID"
)