Changelog
Source:NEWS.md
ggicons (development version)
- Icons with curved outlines (e.g. circles) no longer show faceted, polygonal edges when rendered large. Curves are now kept as Bezier paths and only flattened to a polyline at draw time, at a resolution adapted to the icon’s actual rendered size and the output device’s resolution, instead of a fixed low-resolution approximation baked in when the icon was first parsed.
grImport2is no longer a dependency; SVG path data is now parsed directly (viaxml2).
ggicons 0.1.0
Initial CRAN submission.
- Added
geom_icon(), a geom that draws an icon per row from theiconaesthetic, styled withcolour/fill,size,alphaandangle. Theiconaesthetic takes an icon vector from theiconspackage directly (e.g.icons::fontawesome$solid$rocket). - Added
draw_key_icon(), the defaultgeom_icon()legend key glyph. - Added
scale_icon_identity()andscale_icon_manual(), plusscale_type.icon()method soaes(icon = ...)picks a sensible scale. - Added
annotation_icon(), for drawing one or more icons at fixed positions, recycled the wayannotate()recycles its arguments. - Added
element_icon(), atheme()element (parallel toelement_text()) foraxis.text/strip.text/legend.textthat draws any label matching a name in a suppliediconslookup as an icon, falling back to ordinary text for everything else. - Added
geom_pictogram()andstat_pictogram(), for isotype-style unit charts, waffle/percentage charts and rating widgets: avalueis turned into a grid of repeated icons, some fraction of them filled in. The grid can be fixed-size (a waffle chart) or grow withvalue(an isotype chart), and reads as a bar/column chart whenxoryis left unmapped. - Added
guide_pictogram()andscale_value_continuous(), which together givegeom_pictogram()’svalueaesthetic a default legend spelling out the amount one icon represents (e.g. “= 1000”).