theme_ipea(): axis/tick/border/gridlines now render at exactly 0.5pt, axis and legend text at exactly 7pt, and axis labels are spaced 1mm from ticks, matching the Ipea Editorial Manual guidelines.
ipea_label_size(): converts a point size (default 6pt) to the mm size used by geom_text()/geom_label(), for labeling values on bars/lines per the editorial guidelines.save_ipeaplot() errors ("unused argument") when use_cairo = FALSE on pdf/eps formats.save_ipeaplot() silently reporting success when a Cairo-based device fails to write a file; it now errors with a clear message."NT" and "TD", based on the cover, section-title and chart colours of two Ipea editorial series (Nota Tecnica and Texto para Discussao). scale_color_ipea()/scale_fill_ipea() switch automatically to their qualitative 12-colour variant for discrete data.ipea_palette() affecting every palette: an incorrect string offset silently forced the low nibble of the blue channel to F in all generated colours.theme_ipea(): default legend.position changed from "right" to "bottom", matching the Ipea Editorial Manual guidelines.theme_ipea(): geom_point() layers in line charts (i.e. plots that also have a geom_line()/geom_path()/geom_step() layer) now default to a solid square marker (shape = 15), per the Ipea Editorial Manual guidelines. Does not affect scatter plots or a shape already set by the user.ipea_contrast_color(): given one or more fill/background colours, returns "white" or "black", whichever is more readable, for labels drawn over bars/points per the editorial guidelines.theme_ipea(): x-axis category labels could collide with the x-axis title whenever some categories wrapped onto two lines (via "\n") and others didn't (a mix of single- and multi-line labels on the same axis) — a stray vjust = -1 on axis.text.x misaligned single-line labels.save_ipeaplot(): a unified function to save plots in multiple formats (vector formats such as .eps and .pdf, and raster formats such as .png and .jpg), with defaults that make it easy to use.save_pdf()Release of ipeaplot v0.3.1 on CRAN with the following functions:
theme_ipea()scale_color_ipea()scale_fill_ipea()save_eps()