• Last update
  • 1 Dataset
    • 1.1 Understanding the dataset is key to getting the most out of it.
    • 1.2 Defining variables correctly
    • 1.3 Checking the structure of the dataset
  • 2 Tables
    • 2.1 Some packages to build tables in R
    • 2.2 Table parts
    • 2.3 Merging cells
    • 2.4 Example - merge
    • 2.5 Define displayed values and mixed content
    • 2.6 Highlights
  • 3 crosstable - Extracting the basic statistics
    • 3.1 crosstable + flextable
    • 3.2 Making some improvements
    • 3.3 Exporting tables
  • 4 Example 2
    • 4.1 Double entry table
  • 5 Correlation
    • 5.1 Table for correlations
  • 6 Statistical tests
    • 6.1 Chi-square and t-Student’s test
    • 6.2 Regression analysis
  • 7 References
  • 8 Graphics
    • 8.1 Main graphics packages in R
    • 8.2 Which graphical package?
    • 8.3 Histogram using graphics
    • 8.4 Standard barchart
    • 8.5 Standard barchart
    • 8.6 Customised barchart
    • 8.7 Conditional barchart
    • 8.8 Conditional barchart - Standard
    • 8.9 Conditional barchart - Customised
    • 8.10 Mean \(\pm\) Error bar
    • 8.11 Conditional error bars
    • 8.12 Conditional error bars + groups
    • 8.13 Double Scale
    • 8.14 prepanel and panel function
      • 8.14.1 Superpose
    • 8.15 prepanel + panel function
    • 8.16 grid.arrange
    • 8.17 grid.arrange
    • 8.18 grid.arrange
  • 9 3D
    • 9.1 3D
    • 9.2 3D
    • 9.3 3D
  • 10 Extra
  • 11 Descriptive statistics by hand
  • 12 Dataset
    • 12.1 Understanding the dataset is key to getting the most out of it.
    • 12.2 Understanding the dataset is key to getting the most out of it.
    • 12.3 Defining variables correctly
    • 12.4 Defining variables correctly
    • 12.5 Checking the structure of the dataset
  • 13 Tables
    • 13.1 Some packages to build tables in R
    • 13.2 Table parts
    • 13.3 Merging cells
    • 13.4 Example - merge
    • 13.5 Example - merge
    • 13.6 Define displayed values and mixed content
    • 13.7 Define displayed values and mixed content
    • 13.8 Highlights
  • 14 crosstable - Extracting the basic statistics
    • 14.1 crosstable + flextable
    • 14.2 crosstable + flextable
    • 14.3 Making some improvements
    • 14.4 Making some improvements
    • 14.5 Exporting tables
  • 15 Example 2
    • 15.1 Double entry table
    • 15.2 Double entry table
    • 15.3 Double entry table
  • 16 Correlation
    • 16.1 Table for correlations
    • 16.2 Table for correlations
  • 17 Statistical tests
    • 17.1 Chi-square and t-Student’s test
    • 17.2 Chi-square and t-Student’s test
    • 17.3 Regression analysis
  • 18 References
  • 19 Graphics
    • 19.1 Main graphics packages in R
    • 19.2 graphics package
    • 19.3 ggplot2 package
    • 19.4 lattice package
    • 19.5 Which graphical package?
    • 19.6 Histogram using graphics
    • 19.7 Histogram using ggplot2
    • 19.8 Histogram using lattice
    • 19.9 Standard barchart
    • 19.10 Standard barchart
    • 19.11 Customised barchart
    • 19.12 Conditional barchart
    • 19.13 COnditional barchart - Standard
    • 19.14 Conditional barchart - Customised
    • 19.15 Conditional barchart - Customised
    • 19.16 Conditional barchart - Customised
    • 19.17 Conditional barchart - Customised
    • 19.18 Conditional barchart - Customised
    • 19.19 Mean \(\pm\) Error bar
    • 19.20 Mean \(\pm\) Error bar
    • 19.21 Mean \(\pm\) Error bar
    • 19.22 Mean \(\pm\) Error bar
    • 19.23 Conditional error bars
    • 19.24 Conditional error bars
    • 19.25 Conditional error bars
    • 19.26 Conditional error bars
    • 19.27 Conditional error bars
    • 19.28 Conditional error bars
    • 19.29 Conditional error bars + groups
    • 19.30 Conditional error bars + groups
    • 19.31 Conditional error bars + groups
    • 19.32 Conditional error bars + groups
    • 19.33 Conditional error bars + groups
    • 19.34 Double Scale
    • 19.35 Double Scale
    • 19.36 Double Scale
    • 19.37 prepanel and panel function
    • 19.38 Superpose
    • 19.39 Superpose
    • 19.40 Superpose
    • 19.41 Superpose
    • 19.42 prepanel + panel function
    • 19.43 prepanel + panel function
    • 19.44 prepanel + panel function
    • 19.45 grid.arrange
    • 19.46 grid.arrange
    • 19.47 grid.arrange
  • 20 3D
    • 20.1 3D
    • 20.2 3D
    • 20.3 3D
  • 21 Extra

Basic Statistics in R (Tables and Figures)

18 References

  • Chaltiel, D. 2024. Introduction to crosstable. Online book
  • Gohel, D. 2024. Using the flextable R package. Online book