File: facet-layout.md

package info (click to toggle)
r-cran-ggplot2 3.5.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,944 kB
  • sloc: sh: 15; makefile: 5
file content (56 lines) | stat: -rw-r--r-- 1,440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# facet_wrap throws errors at bad layout specs

    `ncol` must be a whole number or `NULL`, not an integer vector.

---

    `ncol` must be a whole number larger than or equal to 1 or `NULL`, not the number -1.

---

    `ncol` must be a whole number or `NULL`, not the number 1.5.

---

    `nrow` must be a whole number or `NULL`, not an integer vector.

---

    `nrow` must be a whole number larger than or equal to 1 or `NULL`, not the number -1.

---

    `nrow` must be a whole number or `NULL`, not the number 1.5.

---

    Need 3 panels, but together `nrow` and `ncol` only provide 1.
    i Please increase `ncol` and/or `nrow`.

---

    `facet_wrap()` can't use free scales with `coord_fixed()`.

# facet_grid throws errors at bad layout specs

    `coord_fixed()` doesn't support free scales.

---

    Free scales cannot be mixed with a fixed aspect ratio.

# facet_wrap and facet_grid throws errors when using reserved words

    "ROW" is not an allowed name for faceting variables.
    i Change the name of your data columns to not be "PANEL", "ROW", "COL", "SCALE_X", or "SCALE_Y".

---

    "ROW" and "PANEL" are not allowed names for faceting variables.
    i Change the name of your data columns to not be "PANEL", "ROW", "COL", "SCALE_X", or "SCALE_Y".

---

    "ROW" is not an allowed name for faceting variables.
    i Change the name of your data columns to not be "PANEL", "ROW", "COL", "SCALE_X", or "SCALE_Y".