File: facet-layout.md

package info (click to toggle)
r-cran-ggplot2 3.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,748 kB
  • sloc: sh: 15; makefile: 5
file content (56 lines) | stat: -rw-r--r-- 1,313 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 positive scalar integer or "NULL"

---

    `ncol` must be a positive scalar integer or "NULL"

---

    `ncol` must be a positive scalar integer or "NULL"

---

    `nrow` must be a positive scalar integer or "NULL"

---

    `nrow` must be a positive scalar integer or "NULL"

---

    `nrow` must be a positive scalar integer or "NULL"

---

    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"