Publications by Stéphane Laurent

Why I like generalized fiducial inference

07.11.2020

Throughout this article, one considers the balanced one-way ANOVA model with a random factor (group). The between standard deviation and the within standard deviation are denoted by \(\sigma_{\mathrm{b}}\) and \(\sigma_{\mathrm{w}}\) respectively. The grand mean is denoted by \(\mu\). The nu...

5848 sym R (4048 sym/9 pcs) 12 img

Generalized fiducial inference on quantiles

26.11.2020

My new package ‘gfiExtremes’ is on CRAN now. So it is time to present it. This package allows to get confidence intervals about the quantiles of any reasonable distribution (although the inference is based on a parametric model). The statistical inference is fiducial. To give an illust...

2919 sym R (3712 sym/13 pcs) 12 img

Bookmarking a Shiny app without Shiny bookmarking

08.12.2020

I do not well remember, but it seems to me I faced some difficulties when I tried to use Shiny bookmarking to save and restore the state of a Shiny app. These difficulties arose when there were some renderUI in the app or an input updated with an updateXXXinput function. Then I’m using my own way...

1357 sym R (3490 sym/2 pcs) 4 img

Clipping an isosurface to a ball, and more

13.01.2022

We will firstly show how to clip an isosurface to a ball with R, and then, more generally, how to clip a surface to an arbitrary region. In the last part we show how to achieve the same with Python. Using R The Togliatti isosurface, clipped to a box The Togliatti surface is the isosurface \(f(x, ...

2979 sym R (3716 sym/12 pcs) 10 img

Surface reconstruction with R(CGAL)

14.01.2022

Eric Dunipace recently released a new package on CRAN: RcppCGAL. It allows to link to the C++ library CGAL in Rcpp. The CGAL library provides an extensive set of algorithms for computational geometry. I made a package based on RcppCGAL, which I called RCGAL. Unfortunately, R CMD CHECK throw...

6292 sym R (4204 sym/36 pcs) 28 img

Funny 3D Voronoï diagrams

18.01.2022

Four years ago I wrapped the C library Qhull in a Haskell package. Thanks to Qhull, this package can do some convex hulls and some Delaunay tessellations. The Qhull library also allows to do some Voronoï tessellations, but I never understood how that works. So I programmed the Voronoï tessellation...

2264 sym R (1044 sym/4 pcs) 4 img

‘gifski’ as a bash command using R

27.01.2022

The gifski command-line utility is a great tool to make a GIF animation from a series of png files. At my work I’m using a laptop with Windows 10 and I don’t have admin rights. I don’t know how to install gifski on this laptop. But gifski is also the name of a R package which wraps th...

1615 sym R (3009 sym/3 pcs) 2 img

Hopf torus with dynamic colors

28.01.2022

In a recent post I explained how to decorate a surface with moving colors with the Python library PyVista. Here I expose this method for the R package rgl. I will take a Hopf torus with fives lobes for the illustration. The following R function is a slight modification of the parame...

2578 sym R (1667 sym/6 pcs) 4 img

Some simple RStudio addins

02.02.2022

In this blog post I introduce three small RStudio addins I did. ‘bracketify’ I prefer subsetting with the double brackets than with the dollar in R, because this is more readable in RStudio thanks to the syntax highlighting. That’s why I did bracketify. This addin replaces all occurr...

1611 sym 8 img

Gyrotriangle (aka hyperbolic triangle) with moving colors

04.02.2022

My package gyro has been freshly released on CRAN. I implemented the ideas given in this blog post in this package. It has a short vignette. The gyrodemos function provides some examples. But none of them explains how I did the moving colors on this polyhedra that you can see on the...

2125 sym R (876 sym/2 pcs) 6 img