Skip to content

Commit e24cbba

Browse files
authored
Be clearer on what shapes the fill aesthetic applies (#5868)
1 parent 9af10fa commit e24cbba

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

R/geom-point.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#' `geom_point(alpha = 0.05)`) or very small (e.g.
2828
#' `geom_point(shape = ".")`).
2929
#'
30-
#' @eval rd_aesthetics("geom", "point")
30+
#' @eval rd_aesthetics("geom", "point", "The `fill` aesthetic only applies to shapes 21-25.")
3131
#' @inheritParams layer
3232
#' @param na.rm If `FALSE`, the default, missing values are removed with
3333
#' a warning. If `TRUE`, missing values are silently removed.

man/geom_point.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/ggplot2-specs.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Shapes take five types of values:
230230
231231
### Colour and fill
232232
233-
Note that shapes 21-24 have both stroke `colour` and a `fill`. The size of the filled part is controlled by `size`, the size of the stroke is controlled by `stroke`. Each is measured in mm, and the total size of the point is the sum of the two. Note that the size is constant along the diagonal in the following figure.
233+
While `colour` applies to all shapes, `fill` only applies to shapes 21-25, as can be seen above. The size of the filled part is controlled by `size`, the size of the stroke is controlled by `stroke`. Each is measured in mm, and the total size of the point is the sum of the two. Note that the size is constant along the diagonal in the following figure.
234234
235235
```{r}
236236
#| fig.alt = "A plot showing a 4-by-4 grid of red points, the top 12 points with

0 commit comments

Comments
 (0)