Preface

đź“– Status of the book

Hi there! This book is a work-in-progress. You may like to come back later when it’s closer to a complete state. If you would like to raise issues or leave feedback, please feel to do this:

This book is intended for anyone who is interested in planning, designing and simulating experiments with a programming language. The programming is illustrated with the R language, however, the concept may be generalised to other programming languages.

The book can also serve as a reference to both undergraduate and graduate courses. Each section has problems that can be used as exercise for students. The book can also be used by practitioners that are involved with scientific or industrial experiments. The book will include plenty of examples spanning a diverse range of disciplines.

It is beneficial to have at least some knowledge of R. Readers may like to read XXX for basic knowledge in R and “R for Data Science” for tidyverse approaches to data analysis in R.

The book primarily makes use of ggplot2 for drawing static plots. The default color scheme and theme are modified as below and are applied for all plots produced by ggplot2 henceforth.

library(ggplot2)
theme_set(theme_classic(base_size = 12))
options(
  ggplot2.discrete.fill = list(
    c("#c8008f", "#008a25"),
    RColorBrewer::brewer.pal(8, "Set2")
  ),
  ggplot2.discrete.colour = list(
    c("#c8008f", "#008a25"),
    RColorBrewer::brewer.pal(8, "Dark2")
  )
)



eunit1 <- function() '<i class="fas fa-seedling"></i>'
eunit2 <- function() '<i class="fas fa-wine-bottle"></i>'
eunit3 <- function() '<i class="fas fa-laptop"></i>'