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
Thought I'd better make a note somewhere about an attempt I made to add in a smoothing parameter. The idea was to "iron out" small bumps in the text by a simple loess of x co-ordinates and another of y co-ordinates. This produces a very nice effect in some cases. For example, with the trend lines. Compare without any smoothing:
To my eye this looks a lot nicer and is closer to publication standard. The problem is that it smooths the underlying path itself, so can't be used when the exact path is important (such as density curves), and often distorts the spacing of the text.
We can actually get the same result as the nice one above by simply calling geom_textpath with a span = 1, which, although we don't use as a parameter, gets passed to stat_smooth:
So I'm not convinced that a smoothing feature is required. Perhaps a stat_textspline will be the route to smoothing paths, and this is on the to-do list.
The text was updated successfully, but these errors were encountered:
Thought I'd better make a note somewhere about an attempt I made to add in a smoothing parameter. The idea was to "iron out" small bumps in the text by a simple loess of x co-ordinates and another of y co-ordinates. This produces a very nice effect in some cases. For example, with the trend lines. Compare without any smoothing:
versus with smoothing:
To my eye this looks a lot nicer and is closer to publication standard. The problem is that it smooths the underlying path itself, so can't be used when the exact path is important (such as density curves), and often distorts the spacing of the text.
We can actually get the same result as the nice one above by simply calling
geom_textpath
with aspan = 1
, which, although we don't use as a parameter, gets passed tostat_smooth
:So I'm not convinced that a smoothing feature is required. Perhaps a stat_textspline will be the route to smoothing paths, and this is on the to-do list.
The text was updated successfully, but these errors were encountered: