ggpointless 0.2.0
New features
-
New
geom_fourier()andstat_fourier()fit a truncated Fourier series
(viastats::fft()) tox/ydata and render the reconstructed curve.
Supports optional detrending ("lm"or"loess") and harmonic selection
vian_harmonics(#7). -
New
geom_arch()andstat_arch()draw inverted catenary curves (arches)
between successive points, complementing the existinggeom_catenary()(#4). -
New
geom_area_fade()draws area charts where the fill colour fades from
opaque to transparent usinggrid::linearGradient(). The fade target alpha
is controlled viaalpha_fade_to(#3). -
New
geom_point_glow()draws points with a radial gradient glow behind
each point usinggrid::radialGradient(). The glow alpha, colour, and size
can be customised viaglow_alpha,glow_colour, andglow_size(#6).
Breaking changes
- The bundled (but outdated) datasets
co2_ml,covid_vac, andfemale_leadershave been
removed from the package. These datasets can be obtained from their
original sources: Mauna Loa CO2,
CDC vaccination data,
and Wikipedia female leaders,
respectively. Thevignette("examples")that showcased these datasets has
been removed alongside them.
Improvements
-
The package now requires R >= 4.2.0 and ggplot2 >= 4.0.0. Several geoms
take (mostly internal) advantage of new ggplot2 features such as
make_constructor(), andgg_par(). -
Messages and errors across the package have been migrated to the
cliand
rlangpackages, giving consistent, hyperlink-aware output. -
geom_catenary()gained a vectorizedchain_lengthargument and
deprecatedchainLengthinstead (#4). -
stat_catenary()no longer wrongfully removes data points when the upper
limit inylim()is set to the maximum y-value of the dataset (#1).