1. Graphics
  2. Ex08: ggplot gallery
Analysis of Ecological Data
  • Basics
    • What is ecological data?
    • What is R?
    • Variables, Values, Functions
    • Vectors
    • Logical Operators
    • Ex01: First Steps
    • Ex02: Second Steps
  • Data handling
    • Introduction to data.frame
    • Filepaths and data I/O
    • Introduction to tidyverse
    • Wide vs. Long data.frames
    • Ex03: iris
    • Ex04a: Trees, Districts and base R
    • Ex04b: Trees, Districts and the tidyverse
  • Data analysis
    • Ex05: German Climate
    • Ex06: Crop vs. Species
    • Formula notation
    • Linear Models
    • Ex07: Species vs. Area
  • Graphics
    • ggplot2 basics
    • ggplot2 advanced
    • Colors
    • markdown and quarto
    • Ex08: ggplot gallery
    • Ex09: Course Summary
  • Outlook
    • Control structures I: functions
    • Introduction to for-loops
  • Appendix
    • Where to go from here?
    • Additional Ressources

Ex08: ggplot gallery

Erstelle folgende Grafiken mit ggplot2:

  • Boxplots der Aranae Species pro Feldfruchttyp.
  • Scatterplot der Carabidae Individuen und Carabidae Species. Die Punkte sollen je nach Feldfrucht unterschiedlich gefärbt sein.
  • Erstelle eine Karte der Bäume Münsters (nur mit ggplot!).
  • Erstelle eine “heatmap” der Bäume in Münster (geom_bin_2d or geom_hex)
  • Plotte die Zeitreihe der Sommertemperatur in Deutschland mit:
    • einer x-Achse in einem Zeitformat. Nutze lubridate::years() um das Datum vernünftig zu formatieren.
    • einer horizontalen Linie das langjährige Mittel der Temperatur zw. 1961 und 1990 anzeigt.
    • Färbe die Zeitreihe nach der Temperatur ein. Nutze eine geeignete Farbskala.