Skip to contents

# On visuals

Source: `vignettes/visuals.Rmd`
`visuals.Rmd`

    library(FreesearchR)
    #>
    #> Attaching package: 'FreesearchR'
    #> The following object is masked from 'package:base':
    #>
    #>     sort_by

## 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.

### 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 horizontal bars | A classical way of visualising the distribution of an ordinal scale like the modified Ranking Scale and known as Grotta bars
dichotomous | Violin plot | A modern alternative to the classic boxplot to visualise data distribution
dichotomous | Sankey plot | A way of visualising change between groups
dichotomous | Box plot | A classic way to plot data distribution by groups
dichotomous | Euler diagram | Generate area-proportional Euler diagrams to display set relationships
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 | Violin plot | A modern alternative to the classic boxplot to visualise data distribution
categorical | Sankey plot | A way of visualising change between groups
categorical | Box plot | A classic way to plot data distribution by groups
categorical | Euler diagram | Generate area-proportional Euler diagrams to display set relationships