library(tidyr)
library(dplyr)
library(ggplot2)
library(ggfortify)
## theme for ggplot
theme_set(theme_classic())
theme_update(text = element_text(size = 14))Day 7
Freie Universität Berlin @ Theoretical Ecology
January 23, 2024
library(tidyr)
library(dplyr)
library(ggplot2)
library(ggfortify)
## theme for ggplot
theme_set(theme_classic())
theme_update(text = element_text(size = 14))see, for example: R. B. O’Hara and D. J. Kotze, “Do not log‐transform count data,” Methods in Ecology and Evolution, 2010. doi: 10.1111/j.2041-210x.2010.00021.x.
flowchart LR A[fit model\nto raw\ndata] --> B[check\nassumptions] B -->|if not\nfulfilled| T[transform\ndata] T --> J J[fit model to\ntransformed\ndata] --> K[check\nassumptions] K --> P B -->|if fulfilled| P P[make\npredictions] --> S[plot raw\ndata and\npredictions] style T fill:#f80
Transformation for linear models