library(FreesearchR)
i18n_path <- system.file("translations", package = "FreesearchR")
i18n <- shiny.i18n::Translator$new(translation_csvs_path = i18n_path)
i18n$set_translation_language("en")5 Options for data visuals
5.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:
R Charts: Extensive gallery with great plots
R Graph gallery: Another gallery with great graphs
graphics principles: Easy to follow recommendations for clear visuals.
5.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 |