pharos (development version)
Breaking changes
- The plot functions that now take
xax/yaxdraw their axes themselves. Passingxaxtoryaxtthrough...therefore fails with “formal argument matched by multiple actual arguments”; usexax = FALSEoryax = FALSEinstead. InplotLines(),yaxwas previously passed on asyaxt;yax = "n"is now read as a label format.
New features
- Axis specification
xax/yaxthroughout:plotLines(),plotArea(),plotXY(),plotBox(),plotViolin(),plotDensBox(),plotECDF(),plotLift(),plotMiss(),plotRidge(),plotFacet(),plot.BlandAltman(),plot.Lc(),plotBag(),plotBubble(),plotDens(),plotFun(),plotHexbin()andplotQQ(), in line withplotBar(),plotDot()andplotPyramid().NULLdraws the default axis,FALSEsuppresses it, a string is a label format (yax = "%"), and a list may mix arguments forfm()andaxis()(yax = list(fmt = "%", digits = 0, las = 1)). Anatin the list sets the tick positions. - Date axes: for a
DateorPOSIXctx, ticks fall on calendar boundaries and can be labelled with the date patterns offm()(xax = "yyyy"). -
outDir()returns the output directory set by the optionpharos.outDir, or a path within it, e.g.exportPlot(file = outDir("Figure 1")). Absolute paths,..components and missing subdirectories are rejected.
Bug fixes
- Default axis limits no longer use
pretty(), which switched to a coarser step and added an empty band on either side: x-axis ofplotLines()andplotArea()from 9 points on, andplotHexbin().plotFreqDist()takes its limits from the histogram breaks. -
plotBubble()computes its default limits from the data and the bubble radii, so bubbles at the edges are no longer clipped. - An axis specification with unknown or abbreviated names (
list(d = 0)) now warns instead of silently ignoring them; theplotBar()example used such abbreviations and is corrected. - Low-level additions after a plot (
axis(),points(),text(),legend(), …) were shifted, as the plot region was reset on exit while the user coordinates stayed. The region now stays as drawn and is undone when the next plot starts, unless the margins have been changed in between.
pharos 0.1.2
New features
- Graphics layer of the DescToolsX package suite, built on base graphics: distribution and density displays, bivariate and categorical plots, diagnostic and model evaluation panels.
- A theme system (
getTheme(),setTheme(),resetTheme(),style()) resolves colours, symbols and layout centrally, so the appearance of a whole analysis is set once rather than at every call. -
plotFacet()arranges panels from a user-supplied panel function and is the mechanism the other packages of the suite draw their multi-panel diagnostics with. - Supporting toolkits for colour conversion and palettes, plot geometry, number and string formatting, and HTML output.
- Performance-critical routines are implemented in C++ via Rcpp.
