Monolix
Auto Light Dark
Auto Light Dark

Interacting with the plots

Interactive diagnostic plots


In the Plots tab, the right panel has several sub – tabs (at the bottom) to interact with the plots:

  • The tab “Settings” provides options specific to each plot, such as hiding or displaying elements of the plot, modifying some elements, or changing axes scales, ticks and limits.

  • The tab “Stratify” can be used to select one or several covariates for splitting, filtering or coloring the points of the plot. See below for more details.

  • The tab “Preferences” alows to customize graphical aspects such as colors, font size, dot radius, line width, …

These tabs are marked in purple on the figure below, which is the panel that is showed for observed data.

Monolix plot settings panel for the observed data plot. The GENERAL section shows toggles for Legend, Grid, Information and Dosing times and a Zoom constraint choice, followed by DISPLAY, BINS and AXES sections. A purple box highlights the three tabs at the bottom, STRATIFY, SETTINGS and PREFERENCES.


Highlight: tooltips and ID

In all the plots, when you hover a point or a curve with your mouse, some informations are provided as tooltips. For example, the ID is displayed when hovering a point or the curve of an individual in the observed data plot, the ID, the time and/or the prediction is displayed in the scatter plot of the residuals.
In addition, starting from the 2019 version, when hovering one point/ID in a plot, the same ID will be highlighted in all the plots with the same color.

Stratification: split, color, filter

The stratification panel allows to create and use covariates for stratification purposes. It is possible to select one or several covariates for splitting, filtering or coloring the data set or the diagnosis plots as exposed on the following video.

The following figure shows a plot of the observed data from the warfarin dataset, stratified by coloring individuals according to the continuous covariate wt: the observed data is divided into three groups, which were set to equal size with the button “rescale” Rescale button icon, a blue double-headed horizontal arrow . It is also possible to set groups of equal width, or to personalize dividing values.
In addition, the bounds of the continuous covariate groups can be changed manually.


Monolix observed data plot of y1 versus time for the warfarin data, with individual curves colored by weight group, green, purple and orange. The stratification panel on the right defines three wt groups, 40 to 66.7, 66.7 to 76.7 and 76.7 to 102, with 11, 11 and 10 individuals, and the Color tab has wt checked, annotated as coloring all groups.


Moreover, clicking on a group highlights only the individuals belonging to this group, as can be seen below:


Same warfarin observed data plot where the wt group 76.7 to 102 has been clicked and highlighted in the stratification table. Only the 10 individuals of this group are drawn in orange with larger points, all other individuals are blue. The wt coloring checkbox is unchecked, annotated as coloring of all groups inactive.


Values of categorical covariates can also be assigned to new groups, which can then be used for stratification.
In addition, the number of subjects in each categorical covariate groups is displayed.

Starting from the 2021R1 version, the list of subplots obtained by split is displayed below the split selection. It is possible to reorder the items in this list with drag-and-drop, which also reorders the subplot layout. Moreover, an “edit” icon next to each subplot name in the list allows to change the subplot titles.


Monolix 2021R1 Plots tab with observed data of the warfarin demo split by age and wt into four subplots, with titles such as age 21-28 and wt 40-73.3. In the stratification panel, a green box highlights the SUBPLOTS list below the split selection, where a subplot name is being dragged to reorder it and each name has an edit icon.


Preferences: customizing the plot appearance

In the “preferences” tab, the user can modify the different aspects of the plot: colors, line style and width, fonts and label position offsets, …



The following figures show on the warfarin demo the choices for the plot content and the choices for the labels and titles (in the “Plotting region” section). The sizes of all elements of the plots can also be changed with the single “zoom” preference in “Plotting region”.


Monolix observed data plot of y1 versus time with the PREFERENCES tab open. A green box highlights the preference sections Plotting region, Legend, Observations, Observation statistics, Bins values, Highlighting, Information and Dosing times. The Observations section shows color 4682B4, dot radius 3 and line width 1.5.


Monolix observed data plot of y1 versus time with the PREFERENCES tab open on the Plotting region section, highlighted in green. It shows Zoom set to 100, plots and frame background colors, sub-sections Spacing, Axes, Titles and Labels, and Labels font size 14 with label color black.


Layout

The layout can be modified with buttons on top of each plot.


Plot toolbar with labeled buttons, Select subplots, Arrange layout, Export plot, Reporting placeholder, and PREV, NEXT and page numbers 1 to 3 to navigate pages.


The first button can be used to select a set of subplots to display in the page. For example, as shown below, it is possible to display 9 individual fits per page instead of 12 (default number). The layout is then automatically adapted to balance the number of rows and columns.


Animated Monolix individual fits plot showing a grid of 12 subjects, 4 columns by 3 rows, each with observed y1 points and a purple fit curve versus time, and page navigation 1 to 3. The animation shows the Select subplots button used to display 9 individual fits per page instead of 12.


The second button can be used to choose a custom layout (number of rows and columns). On the example figures below, the default layout with 3 subplots (left) is modified to arrange them on a single column (right).


Animated Monolix VPC of y1 versus time split by wt into 3 subplots, wt 40-62.5, 62.5-76.5 and 76.5-102, with blue and pink prediction interval bands and red areas marking outliers. The default layout of 2 columns is changed with the Arrange layout button to place the 3 subplots in a single column.


Last updated: