Skip to content

Commit 1709196

Browse files
committed
Use lineend from correct env
Fixes #1852
1 parent e9fbd23 commit 1709196

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ There were a number of tweaks to the theme elements that control legends:
171171

172172
* `geom_contour()` more clearly describes what inputs it needs (#1577).
173173

174+
* `geom_curve()` respects the `lineend` paramater (#1852).
175+
174176
* `geom_histogram()` and `stat_bin()` understand the `breaks` parameter once
175177
more. (#1665). The floating point adjustment for histogram bins is now
176178
actually used - it was previously inadvertently ignored (#1651).

R/geom-curve.r

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ GeomCurve <- ggproto("GeomCurve", GeomSegment,
4545
call. = FALSE)
4646
}
4747
trans <- coord$transform(data, panel_scales)
48+
4849
curveGrob(
4950
trans$x, trans$y, trans$xend, trans$yend,
5051
default.units = "native",
@@ -54,7 +55,7 @@ GeomCurve <- ggproto("GeomCurve", GeomSegment,
5455
col = alpha(trans$colour, trans$alpha),
5556
lwd = trans$size * .pt,
5657
lty = trans$linetype,
57-
lineend = trans$lineend),
58+
lineend = lineend),
5859
arrow = arrow
5960
)
6061
}

0 commit comments

Comments
 (0)