Publications by Michael

Scales

12.11.2022

Day 12 of 30DayMapChallenge : « scales » (previously). French « départements » at the same size but tidily ordered by area. library(tidyverse) library(sf) library(units) library(tmap) # data from https://geoservices.ign.fr/adminexpress fr <- read_sf("~/adminexpress.gpkg", layer = "departement") png("scales.png", width = ...

531 sym R (545 sym/1 pcs) 2 img

Sentinel

11.11.2022

Day 11 of 30DayMapChallenge : « red » (previously). Today no cartography in R but in QGIS. However the satellite image processing has been made with the {sen2R} package. We emulate infrared photography with a combination of the 8, 4 and 3 bands from the Sentinel-2 satellites, aimed at Termignon in the Vanoise National Park. Glaciers (and clou...

894 sym 2 img

Get lost

10.11.2022

Day 10 of 30DayMapChallenge : « bad map » (previously). Just resampling… library(tidyverse) library(sf) library(glue) library(ggspatial) library(ggrepel) pref <- read_sf("~/adminexpress/adminexpress_simpl.gpkg", layer = "commune") %>% filter(insee_reg > "06", str_detect(statut, "Préfecture de région|Capitale")) %>% mutate...

476 sym R (1378 sym/1 pcs) 2 img

Use data from Wikipedia

09.11.2022

Day 9 of 30DayMapChallenge : « space » (previously). Scrape and geolocate data from Wikipedia. We will map the active space launch sites. library(tidyverse) library(lubridate) library(janitor) library(sf) library(glue) library(rvest) library(rnaturalearth) # read all tables from the page # keep onle those containing a country column # clean ...

558 sym R (1783 sym/1 pcs) 2 img

The giant French Olympic-size swimming pool

09.11.2022

Day 7 of 30DayMapChallenge : « Openstreetmap » (previously). What if all private swimming pools could be merged into one 25 m width pool? OSM is not just a map, it’s a database, so ask OSM… I know that not all swimming pools are present in OSM, but it’s just an exercise and it can give us an order of magnitude or at least a minimum. W...

1051 sym R (2495 sym/1 pcs) 4 img

Use data from data.gouv.fr

06.11.2022

Day 6 of 30DayMapChallenge : « network » (previously). Using GIS data directly from data.gouv.fr : railways network of France. library(dplyr) library(ggplot2) library(sf) library(glue) library(httr) # https://www.data.gouv.fr/fr/datasets/fichier-de-formes-des-voies-du-reseau-ferre-national/ GET("https://www.data.gouv.fr/fr/datasets/r/71e3847...

543 sym R (769 sym/1 pcs) 2 img

Minimal

16.11.2022

Day 16 of 30DayMapChallenge : « minimal » (previously). Bare Réunion… # devtools::install_github("tylermorganwall/rayshader") library(rayshader) library(raster) library(tidyverse) library(fs) # ftp://BD_ALTI_ext:[email protected]/BDALTIV2_2-0_25M_ASC_RGR92UTM40S-REUN89_D974_2016-03-11.7z # We get a bunch of ASCII files : open and merge, ...

477 sym R (820 sym/1 pcs) 2 img

Compiling 64-bit R 2.10.1 with MKL in Linux

10.04.2010

The rationale for compiling R using the Intel Math Kernel LibraryRecently, there has been a surge in the use of Intel’s Math Kernel Library (MKL; http://software.intel.com/en-us/intel-mkl/) among data analysis packages. MKL is a highly optimized set of linear algebra libraries that includes full Basic Linear Algebra Subprograms (BLAS) and Linea...

9525 sym

Using MKL-Linked R in Eclipse

12.04.2010

Setting up Eclipse to use MKL-Linked RIn my previous post, I showed how to compile R 2.10.1 using Intel’s Math Kernel Library for the BLAS/LAPACK interface. Even though it takes a bit of time to setup, I think the noticeably improved calculation speed justifies the effort. Although I’m happy to use R from the command line for basic stuff, I p...

4003 sym 2 img

Developing a user-friendly regular expression function (easyGregexpr)

04.05.2010

In the past few months, I’ve developed a set of functions for automating model estimation and interpretation using Mplus, an outstanding latent variable modeling program that has unparalleled flexibility for complex models (e.g., factor mixture models). I recently rolled these functions into an R package called MplusAutomation. Beca...

1569 sym