You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a geom_line has a variable linewidth the joins between the individual line segments are either ugly or nonexistent. The problem can be observed by running the code below: the blue line (which has constant linewidth) looks as expected (and good), while the red line (which has a linewidth that varies slightly) does not look as expected (and looks ugly).
By the way, I suspect the problem is that joining rectangles of varying widths is tricky. Indeed, should they even be rectangles or trapezoids? So perhaps this is actually a feature a request.
This is a limitation of the grid graphics library. It cannot draw lines that change in width or color along the way. Unfortunately there's nothing that can be done at the ggplot2 level.
When a
geom_line
has a variable linewidth the joins between the individual line segments are either ugly or nonexistent. The problem can be observed by running the code below: the blue line (which has constant linewidth) looks as expected (and good), while the red line (which has a linewidth that varies slightly) does not look as expected (and looks ugly).By the way, I suspect the problem is that joining rectangles of varying widths is tricky. Indeed, should they even be rectangles or trapezoids? So perhaps this is actually a feature a request.
The text was updated successfully, but these errors were encountered: