Closed teunbrand closed 5 months ago
Some line geoms, like geom_segment() and geom_curve() have an arrow.fill argument.
geom_segment()
geom_curve()
arrow.fill
library(ggplot2) names(formals(geom_segment)) #> [1] "mapping" "data" "stat" "position" "..." #> [6] "arrow" "arrow.fill" "lineend" "linejoin" "na.rm" #> [11] "show.legend" "inherit.aes" names(formals(geom_curve)) #> [1] "mapping" "data" "stat" "position" "..." #> [6] "curvature" "angle" "ncp" "arrow" "arrow.fill" #> [11] "lineend" "na.rm" "show.legend" "inherit.aes"
Others, like geom_line() and geom_path() do not.
geom_line()
geom_path()
names(formals(geom_line)) #> [1] "mapping" "data" "stat" "position" "na.rm" #> [6] "orientation" "show.legend" "inherit.aes" "..." names(formals(geom_path)) #> [1] "mapping" "data" "stat" "position" "..." #> [6] "lineend" "linejoin" "linemitre" "arrow" "na.rm" #> [11] "show.legend" "inherit.aes"
Created on 2024-01-22 with reprex v2.1.0
We should probably make this consistent across all of ggplot2.
Others that come to mind:
geom_function()
geom_sf()
element_line()
Some line geoms, like
geom_segment()
andgeom_curve()
have anarrow.fill
argument.Others, like
geom_line()
andgeom_path()
do not.Created on 2024-01-22 with reprex v2.1.0
We should probably make this consistent across all of ggplot2.