File: plot.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 (29 lines) | stat: -rw-r--r-- 634 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
# ggplot() throws informative errors

    `mapping` must be created with `aes()`.
    x You've supplied a character vector.

---

    `data` cannot be a function.
    i Have you misspelled the `data` argument in `ggplot()`

# construction have user friendly errors

    Cannot use `+` with a single argument.
    i Did you accidentally put `+` on a new line?

---

    Cannot add <ggproto> objects together.
    i Did you forget to add this object to a <ggplot> object?

---

    Can't add `1` to a <ggplot> object.

---

    Can't add `geom_point` to a <ggplot> object
    i Did you forget to add parentheses, as in `geom_point()`?