Publications by Stéphane Laurent

Nice DT filters

10.02.2022

I am not a big fan of the built-in filters of DT. I prefer the ones below, made with the help of the JavaScript library select2. First, download the files select2.min.js and select2.min.css. Now, here is the code: library(DT) library(htmltools) dat <- iris sketch <- tags$table( tags$thead( ...

686 sym R (1891 sym/1 pcs) 2 img

Volume under surface from points

25.02.2022

The problem Suppose you want to get the volume under a surface but you only have some points on this surface. For the illustration, I will take the surface defined by \(z = \exp\bigl(-(x^2 + y^2)\bigr)\) on the square \([-5, 5] \times [-5, 5]\). Then the volume we’re looking for is close to ...

2229 sym R (1236 sym/10 pcs) 4 img

Hyperbolic gircope – using ‘cxhull’ and ‘gyro’

27.02.2022

This post is a demonstration of the cxhull and gyro packages. I will use these packages (and others) to draw an hyperbolic version of the stereographic projection of a convex 4D polytope, the gircope or great rhombicuboctahedral prism. The gircope has twenty-eight cells, but I will only draw the twe...

2761 sym R (2976 sym/10 pcs) 2 img

The modified stereographic projection

28.02.2022

Some of my 3D animations start with a 4D object (such as a polytope) and I project it to the three-dimensional space with a stereographic projection. For example, the hyperbolic gircope. For this animation, I use the ordinary stereographic projection. But sometimes I don’t get a nice result with the ordin...

2521 sym R (8543 sym/6 pcs) 6 img