4  Options for data visuals

library(FreesearchR)

Attaching package: 'FreesearchR'
The following object is masked from 'package:base':

    sort_by
i18n_path <- system.file("translations", package = "FreesearchR")
i18n <- shiny.i18n::Translator$new(translation_csvs_path = i18n_path)
Warning in load_local_config(translation_csv_config): You didn't specify config
translation yaml file. Default settings are used.
i18n$set_translation_language("en")

4.1 Basic visualisations

The goal of FreesearchR is to keep things simple. Visuals can get very complicated. We provide a selection of plots, that helps visualise typical clinical and will be enough for most use cases, and for publishing to most journals.

If you want to go further, have a look at these sites with suggestions and sample code for data plotting:

4.1.1 Available plots

Below are the available plot types listed.

Data type Plot type Description
continuous Violin plot A modern alternative to the classic boxplot to visualise data distribution
continuous Scatter plot A classic way of showing the association between to variables
continuous Box plot A classic way to plot data distribution by groups
dichotomous Stacked relative barplot Create relative stacked barplots to show the distribution of categorical levels
dichotomous Side-by-side barplot Create side-by-side barplot to show the distribution of categorical levels
dichotomous Stacked horizontal bars A classical way of visualising the distribution of an ordinal scale like the modified Ranking Scale and known as Grotta bars
dichotomous Sankey plot A way of visualising change between groups
dichotomous Euler diagram Generate area-proportional Euler diagrams to display set relationships
categorical Stacked relative barplot Create relative stacked barplots to show the distribution of categorical levels
categorical Side-by-side barplot Create side-by-side barplot to show the distribution of categorical levels
categorical Stacked horizontal bars A classical way of visualising the distribution of an ordinal scale like the modified Ranking Scale and known as Grotta bars
categorical Sankey plot A way of visualising change between groups