4
4
<!-- badges: start -->
5
5
6
6
[ ![ cran
7
- version] ( https://www.r-pkg.org/badges/version/ggpp )] ( https://cran.r-project.org/package=ggpp )
7
+ version] ( https://www.r-pkg.org/badges/version-last-release /ggpp )] ( https://cran.r-project.org/package=ggpp )
8
8
[ ![ cran
9
9
checks] ( https://badges.cranchecks.info/worst/ggpp.svg )] ( https://cran.r-project.org/web/checks/check_results_ggpp.html )
10
10
[ ![ ggpp status
@@ -60,19 +60,19 @@ the displaced and original positions, those of the observation and the
60
60
displaced label, requires also a change in the data returned by position
61
61
functions (see the next section).
62
62
63
- | Geometry | Main use | Aesthetics | Segment |
64
- | ------------------------------------------------------ | --------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----- ----|
65
- | ` geom_text_s() ` | data labels | x, y, label, size, family, font face, colour, alpha, group, angle, vjust, hjust | yes |
66
- | ` geom_label_s() ` | data labels | x, y, label, size, family, font face, colour, fill, alpha, linewidth, linetype, group, vjust, hjust | yes |
67
- | ` geom_text_pairwise() ` | data labels | x, xmin, xmax, y, label, size, family, font face, colour, alpha, group, angle, vjust, hjust | horiz. |
68
- | ` geom_label_pairwise() ` | data labels | x, xmin, xmax, y, label, size, family, font face, colour, fill, alpha, linewidth, linetype, group, vjust, hjust | horiz. |
69
- | ` geom_point_s() ` | data labels | x, y, size, colour, fill, alpha, shape, stroke, group | yes |
70
- | ` geom_table() ` <sup >1</sup > | data labels | x, y, label, size, family, font face, colour, alpha, group, angle, vjust, hjust | yes |
71
- | ` geom_plot() ` <sup >1</sup >, ` geom_grob() ` <sup >1</sup > | data labels | x, y, label, group, angle, vjust, hjust | yes |
72
- | ` geom_margin_arrow() ` | data labels, scale labels, data | xintercept, yintercept, label, size, family, font face, colour, alpha, group, vjust, hjust | no |
73
- | ` geom_margin_point() ` | data labels, scale labels, data | xintercept, yintercept, label, size, family, font face, colour, alpha, group, vjust, hjust | no |
74
- | ` geom_margin_grob() ` | data labels, scale labels, data | xintercept, yintercept, label, size, family, font face, colour, alpha, group, vjust, hjust | no |
75
- | ` geom_quadrant_lines() ` , ` geom_vhlines() ` | data labels, scale labels, data | xintercept, yintercept, label, size, family, font face, colour, alpha, group, vjust, hjust | no |
63
+ | Geometry | Main use | Aesthetics | Segment |
64
+ | ----| ----| ----| ----|
65
+ | ` geom_text_s() ` | data labels | x, y, label, size, family, font face, colour, alpha, group, angle, vjust, hjust | yes |
66
+ | ` geom_label_s() ` | data labels | x, y, label, size, family, font face, colour, fill, alpha, linewidth, linetype, group, vjust, hjust | yes |
67
+ | ` geom_text_pairwise() ` | data labels | x, xmin, xmax, y, label, size, family, font face, colour, alpha, group, angle, vjust, hjust | horiz. |
68
+ | ` geom_label_pairwise() ` | data labels | x, xmin, xmax, y, label, size, family, font face, colour, fill, alpha, linewidth, linetype, group, vjust, hjust | horiz. |
69
+ | ` geom_point_s() ` | data labels | x, y, size, colour, fill, alpha, shape, stroke, group | yes |
70
+ | ` geom_table() ` <sup >1</sup > | data labels | x, y, label, size, family, font face, colour, alpha, group, angle, vjust, hjust | yes |
71
+ | ` geom_plot() ` <sup >1</sup >, ` geom_grob() ` <sup >1</sup > | data labels | x, y, label, group, angle, vjust, hjust | yes |
72
+ | ` geom_margin_arrow() ` | data labels, scale labels, data | xintercept, yintercept, label, size, family, font face, colour, alpha, group, vjust, hjust | no |
73
+ | ` geom_margin_point() ` | data labels, scale labels, data | xintercept, yintercept, label, size, family, font face, colour, alpha, group, vjust, hjust | no |
74
+ | ` geom_margin_grob() ` | data labels, scale labels, data | xintercept, yintercept, label, size, family, font face, colour, alpha, group, vjust, hjust | no |
75
+ | ` geom_quadrant_lines() ` , ` geom_vhlines() ` | data labels, scale labels, data | xintercept, yintercept, label, size, family, font face, colour, alpha, group, vjust, hjust | no |
76
76
77
77
Geometries defined in package ‘ggpp’. <sup >1</sup > NPC versions exist
78
78
for these geometries, as well as for ` geom_text() ` and ` geom_label() ` ,
@@ -113,23 +113,23 @@ that use stacking, dodging or jitter. Functions
113
113
` position_dosge2_keep() ` behave like the positions from ‘ggplot2’ but
114
114
keep in the ` data ` object the original coordinates.
115
115
116
- | Position | Main use | Displacement | Most used with |
117
- | --------------------------- | ---------------- | --------------------------------- | ------------------------- ----|
118
- | ` position_nudge_keep() ` | nudge | x, y (fixed distance) | data labels |
119
- | ` position_jitter_keep() ` | jitter | x, y (random) | dot plots |
120
- | ` position_stack_keep() ` | stack | vertical (absolute) | column and bar plots |
121
- | ` position_stack_minmax() ` | stack | vertical (absolute) | error bars |
122
- | ` position_fill_keep() ` | fill | vertical (relative, fractional) | column plots |
123
- | ` position_dodge_keep() ` | dodge | sideways (absolute) | column and bar plots |
124
- | ` position_dosge2_keep() ` | dodge2 | sideways (absolute) | box plots |
125
- | ` position_nudge_to() ` | nudge | x, y (fixed position) | data labels |
126
- | ` position_nudge_center() ` | nudge | x, y (away or towards target) | data labels |
127
- | ` position_nudge_line() ` | nudge | x, y (away or towards target) | data labels |
128
- | ` position_stacknudge() ` | stack + nudge | combined, see above | data labels in column plots |
129
- | ` position_fillnudge() ` | fill + nudge | combined, see above | data labels in column plots |
130
- | ` position_jitternudge() ` | jitter + nudge | combined, see above | data labels in dot plots |
131
- | ` position_dodgenudge() ` | dodge + nudge | combined, see above | data labels in column plots |
132
- | ` position_dodge2nudge() ` | dodge2 + nudge | combined, see above | data labels in box plots |
116
+ | Position | Main use | Displacement | Most used with |
117
+ | ----| ----| ----| ----|
118
+ | ` position_nudge_keep() ` | nudge | x, y (fixed distance) | data labels |
119
+ | ` position_jitter_keep() ` | jitter | x, y (random) | dot plots |
120
+ | ` position_stack_keep() ` | stack | vertical (absolute) | column and bar plots |
121
+ | ` position_stack_minmax() ` | stack | vertical (absolute) | error bars |
122
+ | ` position_fill_keep() ` | fill | vertical (relative, fractional) | column plots |
123
+ | ` position_dodge_keep() ` | dodge | sideways (absolute) | column and bar plots |
124
+ | ` position_dosge2_keep() ` | dodge2 | sideways (absolute) | box plots |
125
+ | ` position_nudge_to() ` | nudge | x, y (fixed position) | data labels |
126
+ | ` position_nudge_center() ` | nudge | x, y (away or towards target) | data labels |
127
+ | ` position_nudge_line() ` | nudge | x, y (away or towards target) | data labels |
128
+ | ` position_stacknudge() ` | stack + nudge | combined, see above | data labels in column plots |
129
+ | ` position_fillnudge() ` | fill + nudge | combined, see above | data labels in column plots |
130
+ | ` position_jitternudge() ` | jitter + nudge | combined, see above | data labels in dot plots |
131
+ | ` position_dodgenudge() ` | dodge + nudge | combined, see above | data labels in column plots |
132
+ | ` position_dodge2nudge() ` | dodge2 + nudge | combined, see above | data labels in box plots |
133
133
134
134
Position functions defined in package ‘ggpp’.
135
135
@@ -156,26 +156,26 @@ and passing them to a geom.
156
156
The statistics ` stat_quadrant_counts() ` and ` stat_panel_counts() ` make
157
157
it easy to annotate plots with the number of observations.
158
158
159
- | Statistic | Main use | Usual geometries | Most used with | Compute function |
160
- | -------------------------- | ---------------------------- | ------------------------------------------------------------------ | ------------------------ | -------------- ----|
161
- | ` stat_fmt_tb() ` | formatting and selection | ` geom_table() ` | tables as data labels | group |
162
- | ` stat_fmt_tb() ` | formatting and selection | ` geom_table_npc() ` | tables as annotations | group |
163
- | ` stat_dens2d_filter() ` | local 2D density filtering | ` geom_text_s() ` , ` geom_label_s() ` , ` geom_text() ` , ` geom_label() ` | text as data labels | panel |
164
- | ` stat_dens2d_label() ` | local 2D density filtering | ` geom_text_repel() ` , ` geom_label_repel() ` | text as data labels | panel |
165
- | ` stat_dens1d_filter() ` | local 1D density filtering | ` geom_text_s() ` , ` geom_label_s() ` , ` geom_text() ` , ` geom_label() ` | text as data labels | panel |
166
- | ` stat_dens1d_label() ` | local 1D density filtering | ` geom_text_repel() ` , ` geom_label_repel() ` | text as data labels | panel |
167
- | ` stat_dens2d_filter_g() ` | local 2D density filtering | ` geom_text_s() ` , ` geom_label_s() ` , ` geom_text() ` , ` geom_label() ` | text as data labels | group |
168
- | ` stat_dens2d_label_g() ` | local 2D density filtering | ` geom_text_repel() ` , ` geom_label_repel() ` | text as data labels | group |
169
- | ` stat_dens1d_filter_g() ` | local 1D density filtering | ` geom_text_s() ` , ` geom_label_s() ` , ` geom_text() ` , ` geom_label() ` | text as data labels | group |
170
- | ` stat_dens1d_label_g() ` | local 1D density filtering | ` geom_text_repel() ` , ` geom_label_repel() ` | data labels | group |
171
- | ` stat_panel_counts() ` | number of observations | ` geom_text() ` , ` geom_label() ` | text as annotation | panel |
172
- | ` stat_group_counts() ` | number of observations | ` geom_text() ` , ` geom_label() ` | text as annotation | panel |
173
- | ` stat_quadrant_counts() ` | number of observations | ` geom_text() ` , ` geom_label() ` | text as annotation | panel |
174
- | ` stat_apply_panel() ` | cummulative summaries | ` geom_point() ` , ` geom_line() ` , etc. | scatter and line plots | panel |
175
- | ` stat_apply_group() ` | cummulative summaries | ` geom_point() ` , ` geom_line() ` , etc. | scatter and line plots | group |
176
- | ` stat_centroid() ` | joint x and y summaries | ` geom_point() ` , ` geom_rug() ` , ` geom_margin_arrow() ` , etc. | data summary | group |
177
- | ` stat_summary_xy() ` | joint x and y summaries | ` geom_point() ` , ` geom_rug() ` , ` geom_margin_arrow() ` , etc. | data summary | group |
178
- | ` stat_functions() ` | compute y from x range | ` geom_line() ` , ` geom_point() ` , etc. | draw function curves | group |
159
+ | Statistic | Main use | Usual geometries | Most used with | Compute function |
160
+ | ----| ----| ----| ----| ----|
161
+ | ` stat_fmt_tb() ` | formatting and selection | ` geom_table() ` | tables as data labels | group |
162
+ | ` stat_fmt_tb() ` | formatting and selection | ` geom_table_npc() ` | tables as annotations | group |
163
+ | ` stat_dens2d_filter() ` | local 2D density filtering | ` geom_text_s() ` , ` geom_label_s() ` , ` geom_text() ` , ` geom_label() ` | text as data labels | panel |
164
+ | ` stat_dens2d_label() ` | local 2D density filtering | ` geom_text_repel() ` , ` geom_label_repel() ` | text as data labels | panel |
165
+ | ` stat_dens1d_filter() ` | local 1D density filtering | ` geom_text_s() ` , ` geom_label_s() ` , ` geom_text() ` , ` geom_label() ` | text as data labels | panel |
166
+ | ` stat_dens1d_label() ` | local 1D density filtering | ` geom_text_repel() ` , ` geom_label_repel() ` | text as data labels | panel |
167
+ | ` stat_dens2d_filter_g() ` | local 2D density filtering | ` geom_text_s() ` , ` geom_label_s() ` , ` geom_text() ` , ` geom_label() ` | text as data labels | group |
168
+ | ` stat_dens2d_label_g() ` | local 2D density filtering | ` geom_text_repel() ` , ` geom_label_repel() ` | text as data labels | group |
169
+ | ` stat_dens1d_filter_g() ` | local 1D density filtering | ` geom_text_s() ` , ` geom_label_s() ` , ` geom_text() ` , ` geom_label() ` | text as data labels | group |
170
+ | ` stat_dens1d_label_g() ` | local 1D density filtering | ` geom_text_repel() ` , ` geom_label_repel() ` | data labels | group |
171
+ | ` stat_panel_counts() ` | number of observations | ` geom_text() ` , ` geom_label() ` | text as annotation | panel |
172
+ | ` stat_group_counts() ` | number of observations | ` geom_text() ` , ` geom_label() ` | text as annotation | panel |
173
+ | ` stat_quadrant_counts() ` | number of observations | ` geom_text() ` , ` geom_label() ` | text as annotation | panel |
174
+ | ` stat_apply_panel() ` | cummulative summaries | ` geom_point() ` , ` geom_line() ` , etc. | scatter and line plots | panel |
175
+ | ` stat_apply_group() ` | cummulative summaries | ` geom_point() ` , ` geom_line() ` , etc. | scatter and line plots | group |
176
+ | ` stat_centroid() ` | joint x and y summaries | ` geom_point() ` , ` geom_rug() ` , ` geom_margin_arrow() ` , etc. | data summary | group |
177
+ | ` stat_summary_xy() ` | joint x and y summaries | ` geom_point() ` , ` geom_rug() ` , ` geom_margin_arrow() ` , etc. | data summary | group |
178
+ | ` stat_functions() ` | compute y from x range | ` geom_line() ` , ` geom_point() ` , etc. | draw function curves | group |
179
179
180
180
Statistics defined in package ‘ggpp’.
181
181
@@ -354,18 +354,16 @@ citation("ggpp")
354
354
# > To cite package 'ggpp' in publications use:
355
355
# >
356
356
# > Aphalo P (2024). _ggpp: Grammar Extensions to 'ggplot2'_. R package
357
- # > version 0.5.8, https://github.com/aphalo/ggpp,
358
- # > <https://docs.r4photobiology.info/ggpp/>.
357
+ # > version 0.5.8-1, <https://CRAN.R-project.org/package=ggpp>.
359
358
# >
360
359
# > A BibTeX entry for LaTeX users is
361
360
# >
362
361
# > @Manual{,
363
362
# > title = {ggpp: Grammar Extensions to 'ggplot2'},
364
363
# > author = {Pedro J. Aphalo},
365
364
# > year = {2024},
366
- # > note = {R package version 0.5.8,
367
- # > https://github.com/aphalo/ggpp},
368
- # > url = {https://docs.r4photobiology.info/ggpp/},
365
+ # > note = {R package version 0.5.8-1},
366
+ # > url = {https://CRAN.R-project.org/package=ggpp},
369
367
# > }
370
368
```
371
369
0 commit comments