|
9 | 9 | #'
|
10 | 10 | #' Each of the `Geom*` objects is a [ggproto()] object, descended
|
11 | 11 | #' from the top-level `Geom`, and each implements various methods and
|
12 |
| -#' fields. To create a new type of Geom object, you typically will want to |
13 |
| -#' implement one or more of the following: |
| 12 | +#' fields. |
14 | 13 | #'
|
15 | 14 | #' Compared to `Stat` and `Position`, `Geom` is a little
|
16 | 15 | #' different because the execution of the setup and compute functions is
|
|
19 | 18 | #' means there is no `setup_params` because it's hard to communicate
|
20 | 19 | #' the changes.
|
21 | 20 | #'
|
22 |
| -#' - Override either `draw_panel(self, data, panel_params, coord)` or |
| 21 | +#' To create a new type of Geom object, you typically will want to |
| 22 | +#' override one or more of the following: |
| 23 | +#' |
| 24 | +#' - Either `draw_panel(self, data, panel_params, coord)` or |
23 | 25 | #' `draw_group(self, data, panel_params, coord)`. `draw_panel` is
|
24 | 26 | #' called once per panel, `draw_group` is called once per group.
|
25 | 27 | #'
|
|
35 | 37 | #' a coord method.
|
36 | 38 | #'
|
37 | 39 | #' You must always call `coord$transform(data, panel_params)` to
|
38 |
| -#' get the (position) scaled data for plotting. convert. To work with |
| 40 | +#' get the (position) scaled data for plotting. To work with |
39 | 41 | #' non-linear coordinate systems, you typically need to convert into a
|
40 | 42 | #' primitive geom (e.g. point, path or polygon), and then pass on to the
|
41 | 43 | #' corresponding draw method for munching.
|
|
47 | 49 | #' render the geom.
|
48 | 50 | #' - `default_aes`: A list (generated by [aes()] of
|
49 | 51 | #' default values for aesthetics.
|
50 |
| -#' - `reparameterise`: Converts width and height to xmin and xmax, |
| 52 | +#' - `setup_data`: Converts width and height to xmin and xmax, |
51 | 53 | #' and ymin and ymax values. It can potentially set other values as well.
|
52 | 54 | #' @rdname ggplot2-ggproto
|
53 | 55 | #' @format NULL
|
|
0 commit comments