Stat Tech
https://stattech.wordpress.fos.auckland.ac.nz
Statistics Technical BlogThu, 01 Nov 2018 22:58:12 +0000en-UShourly1http://blogs.auckland.ac.nz/?v=4.8.7https://stattech.wordpress.fos.auckland.ac.nz/files/2016/12/cropped-stat-tech-150x150.pngStat Tech
https://stattech.wordpress.fos.auckland.ac.nz
32322018-11 Variable-Width Bezier Splines in R
https://stattech.wordpress.fos.auckland.ac.nz/2018/11/02/2018-11-variable-width-bezier-splines-in-r/
Thu, 01 Nov 2018 22:58:12 +0000http://stattech.blogs.auckland.ac.nz/?p=437 ...]]>This report describes support for a new type of variable-width line in the ‘vwline’ package for R that is based on Bezier curves. There is also a new function for specifying the width of a variable-width line based on Bezier curves and there is a new linejoin and lineend style, called “extend”, that is available when both the line and the width of the line are based on Bezier curves. This report also introduces a small ‘gridBezier’ package for drawing Bezier curves in R.

]]>2018-10 Building an mplib Shared Library
https://stattech.wordpress.fos.auckland.ac.nz/2018/10/04/2018-10-building-an-mplib-shared-library/
Wed, 03 Oct 2018 23:36:42 +0000http://stattech.blogs.auckland.ac.nz/?p=435This report records the steps that were used to build a shared library for the MetaPost graphics system.

]]>2018-09 Importing General-Purpose Graphics in R
https://stattech.wordpress.fos.auckland.ac.nz/2018/09/20/2018-09-importing-general-purpose-graphics-in-r/
Wed, 19 Sep 2018 21:19:21 +0000http://stattech.blogs.auckland.ac.nz/?p=433 ...]]>This report discusses some problems that can arise when attempting to import PostScript images into R, when the PostScript image contains coordinate transformations that skew the image. There is a description of some new features in the ‘grImport’ package for R that allow these sorts of images to be imported into R successfully.

]]>2018-08 Revisiting Mathematical Equations in R: The ‘dvir’ package
https://stattech.wordpress.fos.auckland.ac.nz/2018/08/31/2018-08-revisiting-mathematical-equations-in-r-the-dvir-package/
Thu, 30 Aug 2018 22:18:33 +0000http://stattech.blogs.auckland.ac.nz/?p=431 ...]]>This report describes an R package called ‘dvir’ that aims to use TeX as a layout engine, but performs all rendering within R. The package reads DVI files that are produced from TeX files and renders the content using the R package ‘grid’.

]]>2018-07 Echoes of the Future
https://stattech.wordpress.fos.auckland.ac.nz/2018/07/20/2018-07-echoes-of-the-future/
Thu, 19 Jul 2018 22:38:34 +0000http://stattech.blogs.auckland.ac.nz/?p=429 ...]]>This report discusses ways to combine graphics output from the ‘graphics’ package and the ‘grid’ package in R and introduces a new function echoGrob in the ‘gridGraphics’ package.

]]>2018-06 Rasterizing Chromatograms
https://stattech.wordpress.fos.auckland.ac.nz/2018/06/13/2018-06-rasterizing-chromatograms/
Wed, 13 Jun 2018 03:03:55 +0000http://stattech.blogs.auckland.ac.nz/?p=427 ...]]>This report describes an application of the ‘rasterize’ package for R. We rasterize (just) the line segments of two chromatograms in order to render one semi-transparently over the other. This also demonstrates, more generally, the value of having access to advanced graphical techniques within statistical graphics software.

]]>2018-05 Selective Raster Graphics
https://stattech.wordpress.fos.auckland.ac.nz/2018/05/25/2018-05-selective-raster-graphics/
Thu, 24 May 2018 21:57:46 +0000http://stattech.blogs.auckland.ac.nz/?p=425 ...]]>This report explores ways to render specific components of an R plot in raster format, when the overall format of the plot is vector. For example, we demonstrate ways to draw raster data symbols within a PDF scatter plot. A general solution is provided by the grid.rasterize function from the R package ‘rasterize’.

]]>2018-04 Extreme Makeover: R Graphics Edition
https://stattech.wordpress.fos.auckland.ac.nz/2018/04/30/2018-04-extreme-makeover-r-graphics-edition/
Mon, 30 Apr 2018 03:50:54 +0000http://stattech.blogs.auckland.ac.nz/?p=423 ...]]>This report describes a complex R graphics customisation example using functions from the ‘grid’ and ‘gridGraphics’ packages and introduces two new functions in ‘grid’: deviceLoc and deviceDim.

]]>2018-03 Putting the Macron in Māori: Accented text in R Graphics
https://stattech.wordpress.fos.auckland.ac.nz/2018/03/01/2018-03-putting-the-macron-in-maori-accented-text-in-r-graphics/
Wed, 28 Feb 2018 22:21:09 +0000http://stattech.blogs.auckland.ac.nz/?p=410 ...]]>This report describes different methods for correctly rendering macrons in Māori text within R plots. The topics covered will also have relevance to rendering other special characters in R graphics and possibly to rendering macrons in other software.

]]>2018-02 An ISCC-NBS Colour List for ‘roloc’
https://stattech.wordpress.fos.auckland.ac.nz/2018/02/08/2018-02-an-iscc-nbs-colour-list-for-roloc/
Wed, 07 Feb 2018 21:08:11 +0000http://stattech.blogs.auckland.ac.nz/?p=408 ...]]>This report describes the development of a colour list and colour metric for the ‘roloc’ package that is based on the ISCC-NBS System of Color Designation.