2024-09-16
Visualizing your data is hands down the most important thing you can learn to do.
There are three main audiences in mind when creating data visualizations:
Along with having the audience in mind, it is important to give thought to the purpose of the chart.
The effectiveness of any visualization can be measured according to how well it fulfills the tasks it was designed for. (A. Cairo, 2018).
75% of your choice is determined by the data type
Frequencies (N)
Percents (%)
Adelie Chinstrap Gentoo
0.44 0.20 0.36
Penguin species Adelie make up 44% of the sample (n=152)
N
and the percent %
.Penguin species Adelie make up 44% of the sample (n=152)
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
13.10 15.60 17.30 17.15 18.70 21.50 2
The average bill depth is 17.15mm, with a median of 17.3mm
The distribution of bill depth appears to be bimodal with peaks around 15 and 18mm.
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
13.10 15.60 17.30 17.15 18.70 21.50 2
[1] 1.974793
[1] 3.1
Bill depth ranges from 13.1 to 21.5mm, has an IQR of 3.1mm and a standard deviation of 1.9mm.
center
, shape
and spread
.The average penguin bill depth is 17.15mm, with a standard deviation of 1.9mm. Ranging from 13.1 to 21.5mm, there is a bimodal pattern with peaks around 15 and 18mm but otherwise no skew is noted and no outliers are present.
sjPlot
vignette: https://strengejacke.github.io/sjPlot/index.htmlggpubr
vignette: https://rpkgs.datanovia.com/ggpubr/ggplot
vignette: https://ggplot2.tidyverse.org/index.htmlgtsummary
vignette: https://www.danieldsjoberg.com/gtsummary/index.htmlNice summary table of multiple variables using gtsummary
. Great option for your Table 1.
Characteristic | N = 3441 |
---|---|
island | |
Biscoe | 168 (49%) |
Dream | 124 (36%) |
Torgersen | 52 (15%) |
bill_depth_mm | 17.30 (15.60, 18.70) |
Unknown | 2 |
1 n (%); Median (IQR) |
Default
Characteristic | N = 3441 |
---|---|
island | |
Biscoe | 168 / 344 (49%) |
Dream | 124 / 344 (36%) |
Torgersen | 52 / 344 (15%) |
bill_depth_mm | 17.15 (1.97) |
Unknown | 2 |
1 n / N (%); Mean (SD) |
Custom (preferred) summary statistics display
🔗 https://math615.netlify.app / Describing Distributions of Data