2025-04-23 13:36:42 +00:00
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --> < html lang = "en" >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" >
< title > On visuals • FreesearchR< / title >
2025-04-29 10:29:25 +00:00
<!-- favicons --> < link rel = "icon" type = "image/png" sizes = "96x96" href = "../favicon-96x96.png" >
< link rel = "icon" type = "”image/svg+xml”" href = "../favicon.svg" >
< link rel = "apple-touch-icon" sizes = "180x180" href = "../apple-touch-icon.png" >
< link rel = "icon" sizes = "any" href = "../favicon.ico" >
< link rel = "manifest" href = "../site.webmanifest" >
2025-04-23 13:36:42 +00:00
< script src = "../deps/jquery-3.6.0/jquery-3.6.0.min.js" > < / script > < meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" >
< link href = "../deps/bootstrap-5.3.1/bootstrap.min.css" rel = "stylesheet" >
< script src = "../deps/bootstrap-5.3.1/bootstrap.bundle.min.js" > < / script > < link href = "../deps/Montserrat-0.4.10/font.css" rel = "stylesheet" >
< link href = "../deps/Public_Sans-0.4.10/font.css" rel = "stylesheet" >
< link href = "../deps/font-awesome-6.5.2/css/all.min.css" rel = "stylesheet" >
< link href = "../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel = "stylesheet" >
< script src = "../deps/headroom-0.11.0/headroom.min.js" > < / script > < script src = "../deps/headroom-0.11.0/jQuery.headroom.min.js" > < / script > < script src = "../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js" > < / script > < script src = "../deps/clipboard.js-2.0.11/clipboard.min.js" > < / script > < script src = "../deps/search-1.0.0/autocomplete.jquery.min.js" > < / script > < script src = "../deps/search-1.0.0/fuse.min.js" > < / script > < script src = "../deps/search-1.0.0/mark.min.js" > < / script > <!-- pkgdown --> < script src = "../pkgdown.js" > < / script > < link href = "../extra.css" rel = "stylesheet" >
< meta property = "og:title" content = "On visuals" >
2025-05-10 09:48:41 +00:00
< script defer src = "https://stats.freesearchr.org/script.js" data-website-id = "85bfd1e8-2cbe-4a4a-aa34-1dfb2960905b" > < / script >
2025-04-23 13:36:42 +00:00
< / head >
< body >
< a href = "#main" class = "visually-hidden-focusable" > Skip to contents< / a >
< nav class = "navbar navbar-expand-lg fixed-top bg-primary" data-bs-theme = "dark" aria-label = "Site navigation" > < div class = "container" >
< a class = "navbar-brand me-2" href = "../index.html" > FreesearchR< / a >
2025-09-10 10:19:34 +00:00
< small class = "nav-text text-muted me-auto" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" > 25.8.3< / small >
2025-04-23 13:36:42 +00:00
< button class = "navbar-toggler" type = "button" data-bs-toggle = "collapse" data-bs-target = "#navbar" aria-controls = "navbar" aria-expanded = "false" aria-label = "Toggle navigation" >
< span class = "navbar-toggler-icon" > < / span >
< / button >
< div id = "navbar" class = "collapse navbar-collapse ms-3" >
< ul class = "navbar-nav me-auto" >
< li class = "nav-item" > < a class = "nav-link" href = "../articles/FreesearchR.html" > Get started< / a > < / li >
< li class = "nav-item" > < a class = "nav-link" href = "../reference/index.html" > Reference< / a > < / li >
< li class = "active nav-item dropdown" >
< button class = "nav-link dropdown-toggle" type = "button" id = "dropdown-articles" data-bs-toggle = "dropdown" aria-expanded = "false" aria-haspopup = "true" > Articles< / button >
< ul class = "dropdown-menu" aria-labelledby = "dropdown-articles" >
< li > < a class = "dropdown-item" href = "../articles/data-types.html" > Data types< / a > < / li >
2025-07-03 14:39:17 +00:00
< li > < a class = "dropdown-item" href = "../articles/missingness.html" > Missingness in data< / a > < / li >
2025-04-23 13:36:42 +00:00
< li > < a class = "dropdown-item" href = "../articles/session.html" > Session info< / a > < / li >
< li > < a class = "dropdown-item" href = "../articles/visuals.html" > On visuals< / a > < / li >
< / ul >
< / li >
< li class = "nav-item" > < a class = "nav-link" href = "../ROADMAP.html" > Roadmap< / a > < / li >
< li class = "nav-item" > < a class = "nav-link" href = "../QA.html" > Q& A< / a > < / li >
< li class = "nav-item" > < a class = "nav-link" href = "../news/index.html" > Changelog< / a > < / li >
< / ul >
< ul class = "navbar-nav" >
< li class = "nav-item" > < form class = "form-inline" role = "search" >
< input class = "form-control" type = "search" name = "search-input" id = "search-input" autocomplete = "off" aria-label = "Search site" placeholder = "Search for" data-search-index = "../search.json" >
< / form > < / li >
< li class = "nav-item" > < a class = "external-link nav-link" href = "https://github.com/agdamsbo/FreesearchR/" aria-label = "GitHub" > < span class = "fa fab fa-github fa-lg" > < / span > < / a > < / li >
< / ul >
< / div >
< / div >
< / nav > < div class = "container template-article" >
< div class = "row" >
< main id = "main" class = "col-md-9" > < div class = "page-header" >
2025-04-23 14:21:53 +00:00
< img src = "../logo.png" class = "logo" alt = "" > < h1 > On visuals< / h1 >
2025-04-23 13:36:42 +00:00
2025-09-10 10:19:34 +00:00
< small class = "dont-index" > Source: < a href = "https://github.com/agdamsbo/FreesearchR/blob/main/vignettes/visuals.Rmd" class = "external-link" > < code > vignettes/visuals.Rmd< / code > < / a > < / small >
2025-04-23 13:36:42 +00:00
< div class = "d-none name" > < code > visuals.Rmd< / code > < / div >
< / div >
< div class = "sourceCode" id = "cb1" > < pre class = "downlit sourceCode r" >
< code class = "sourceCode R" > < span > < span class = "kw" > < a href = "https://rdrr.io/r/base/library.html" class = "external-link" > library< / a > < / span > < span class = "op" > (< / span > < span class = "va" > < a href = "https://github.com/agdamsbo/FreesearchR" class = "external-link" > FreesearchR< / a > < / span > < span class = "op" > )< / span > < / span >
< span > < span class = "co" > #> < / span > < / span >
< span > < span class = "co" > #> Attaching package: 'FreesearchR'< / span > < / span >
< span > < span class = "co" > #> The following object is masked from 'package:base':< / span > < / span >
< span > < span class = "co" > #> < / span > < / span >
< span > < span class = "co" > #> sort_by< / span > < / span > < / code > < / pre > < / div >
< div class = "section level2" >
< h2 id = "basic-visualisations" > Basic visualisations< a class = "anchor" aria-label = "anchor" href = "#basic-visualisations" > < / a >
< / h2 >
< p > The goal of < strong > < em > FreesearchR< / em > < / strong > 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.< / p >
< p > If you want to go further, have a look at these sites with
suggestions and sample code for data plotting:< / p >
< ul >
< li > < p > < a href = "https://r-charts.com/" class = "external-link" > < em > R< / em > Charts< / a > : Extensive
gallery with great plots< / p > < / li >
< li > < p > < a href = "https://r-graph-gallery.com/" class = "external-link" > < em > R< / em > Graph
gallery< / a > : Another gallery with great graphs< / p > < / li >
< li > < p > < a href = "https://graphicsprinciples.github.io/" class = "external-link" > graphics
principles< / a > : Easy to follow recommendations for clear
visuals.< / p > < / li >
< / ul >
< div class = "section level3" >
< h3 id = "available-plots" > Available plots< a class = "anchor" aria-label = "anchor" href = "#available-plots" > < / a >
< / h3 >
< p > Below are the available plot types listed.< / p >
< table class = "table" >
< colgroup >
< col width = "7%" >
< col width = "14%" >
< col width = "77%" >
< / colgroup >
< thead > < tr class = "header" >
< th align = "left" > Data type< / th >
< th align = "left" > Plot type< / th >
< th align = "left" > Description< / th >
< / tr > < / thead >
< tbody >
< tr class = "odd" >
< td align = "left" > continuous< / td >
< td align = "left" > Violin plot< / td >
< td align = "left" > A modern alternative to the classic boxplot to
visualise data distribution< / td >
< / tr >
< tr class = "even" >
< td align = "left" > continuous< / td >
< td align = "left" > Scatter plot< / td >
< td align = "left" > A classic way of showing the association between to
variables< / td >
< / tr >
< tr class = "odd" >
< td align = "left" > continuous< / td >
< td align = "left" > Box plot< / td >
< td align = "left" > A classic way to plot data distribution by groups< / td >
< / tr >
< tr class = "even" >
< td align = "left" > dichotomous< / td >
< td align = "left" > Stacked horizontal bars< / td >
< td align = "left" > A classical way of visualising the distribution of an
ordinal scale like the modified Ranking Scale and known as Grotta
bars< / td >
< / tr >
< tr class = "odd" >
< td align = "left" > dichotomous< / td >
< td align = "left" > Violin plot< / td >
< td align = "left" > A modern alternative to the classic boxplot to
visualise data distribution< / td >
< / tr >
< tr class = "even" >
< td align = "left" > dichotomous< / td >
< td align = "left" > Sankey plot< / td >
< td align = "left" > A way of visualising change between groups< / td >
< / tr >
< tr class = "odd" >
< td align = "left" > dichotomous< / td >
< td align = "left" > Box plot< / td >
< td align = "left" > A classic way to plot data distribution by groups< / td >
< / tr >
< tr class = "even" >
< td align = "left" > dichotomous< / td >
< td align = "left" > Euler diagram< / td >
< td align = "left" > Generate area-proportional Euler diagrams to display
set relationships< / td >
< / tr >
< tr class = "odd" >
< td align = "left" > categorical< / td >
< td align = "left" > Stacked horizontal bars< / td >
< td align = "left" > A classical way of visualising the distribution of an
ordinal scale like the modified Ranking Scale and known as Grotta
bars< / td >
< / tr >
< tr class = "even" >
< td align = "left" > categorical< / td >
< td align = "left" > Violin plot< / td >
< td align = "left" > A modern alternative to the classic boxplot to
visualise data distribution< / td >
< / tr >
< tr class = "odd" >
< td align = "left" > categorical< / td >
< td align = "left" > Sankey plot< / td >
< td align = "left" > A way of visualising change between groups< / td >
< / tr >
< tr class = "even" >
< td align = "left" > categorical< / td >
< td align = "left" > Box plot< / td >
< td align = "left" > A classic way to plot data distribution by groups< / td >
< / tr >
2025-05-05 13:04:01 +00:00
< tr class = "odd" >
< td align = "left" > categorical< / td >
< td align = "left" > Euler diagram< / td >
< td align = "left" > Generate area-proportional Euler diagrams to display
set relationships< / td >
< / tr >
2025-04-23 13:36:42 +00:00
< / tbody >
< / table >
< / div >
< / div >
< / main > < aside class = "col-md-3" > < nav id = "toc" aria-label = "Table of contents" > < h2 > On this page< / h2 >
< / nav > < / aside >
< / div >
< footer > < div class = "pkgdown-footer-left" >
2025-06-04 13:18:03 +00:00
< p > Site built with < a href = "https://pkgdown.r-lib.org/" class = "external-link" > pkgdown< / a > 2.1.3.< / p >
2025-04-23 13:36:42 +00:00
< / div >
< div class = "pkgdown-footer-right" >
< p > Developed by Andreas Gammelgaard Damsbo. Provided without < strong > any warranty< / strong > .< / p >
< / div >
< / footer >
< / div >
< / body >
< / html >