New packages - hexsession & forgts
Recent releases
Recent releases
Putting information recorded in filenames into the data rectangle
Tackling problematic spreadsheets
Tidying data with problematic line breaks
Iteration made easy with purrr
Complete sequences from start and end values stored in separate columns
Exploring code comments about R package calls on GitHub
Useful function from unheadr for data cleaning
Creating waffle charts with ggsvg
Annotate R code with details on the packages being loaded
Tidy text manipulation and plotting.
Five tools to make R code cleaner and more reproducible.
Plotting Structure, DAPC, or Admixture results with ggplot2.
Utilizando el paquete rayshader para generar mapas fotorealistas a partir de objectos ggplot.
Using rayshader to render ggplot2 maps in 3D.
Command line tools + R to read large Global Fishing Watch data efficiently.
New Course Available - Clean your data more quickly and efficiently than ever before
Using R as a GIS - raster calculation (reclass, sum) and plotting.
Análsis espaciales con R - suma, reclasificación y visualización de rasters.
New publication
An example with NBA postseason data.
Data cleaning, Principal Component Analysis, and visualization of AoE2 data.
Flattening spreadsheet cell formatting to usable character strings.
Plotting how popularity rankings for dog breeds change through time, (p)updated for 2020.
Plotting seal observations in Antarctica with R and ggplot2.
Ilustrando la distribución de dos especies de focas antárticas con R y ggplot2.
RStudio addins to annotate R code with details on the packages being loaded
Extraer valores de uno o más raster a partir de coordenadas xy usando R.
Rectangling formatted spreadsheet data
Verb-like function to identify and merge rows
Import and work with formatted spreadsheet data
Getting or calculating the values from an underlying raster using stars and sf
Plotting conditional inference trees with dichotomous responses in R, a grammar of graphics implementation
Links to material on Data Rectangling.
Plotting how popularity rankings for dog breeds change through time, (p)updated for 2019.
Plot models of population structure with ggplot for arbitrary values of K.
Find the most and least similar shot patterns for basketall players.
Follow up post - Download, plot, and animate per-game shooting data.
Download, plot, and animate per-game shooting data.
Alternativas a los SIG para calcular riqueza de especies con una cuadrícula.
Quantify and plot spatially-intersecting features.
Digitizing and rectangling a restaurant menu.
ggplot2 alternatives to dynamite plunger plots
How was this not a thing already?
Pretty plotting of point and polygon features.
Figuras espaciales con puntos y polígonos.
The results from crowd-sourcing a suitable term for a common spreadsheet practice.
Tidyng human-readable data by inserting suitable separators.
Cleaning data from the US Financial Disclosure Reports featured in the A.B. Tran and H. Wickham live data challenge.
Animated explanation of dplyr::top_n() and code to create the gif.
Using gganimate to animate the data-munging process.
A package to handle awkwardky-structured data with multiple header rows or values broken across multiple rows.
Wrangling grouped data with broken values and NA/empty rows per variable per group.
Tracking two species of Neotropical cloud forest rodents in three dimensions.
Extracting and wrangling data encoded as text formatting in multi-sheet Excel files.
Plotting how popularity rankings for dog breeds change through time.
Using tidy evaluation to fix values broken up across rows.
Omitting items from legends in ggplot2.
Manipulate and visualize data describing dog breeds and how they are related.
Split a table by a grouping variable, apply functions to each element, and export to separate files.
Downloading, comparing, and visualizing Twitter ratings for dogs and cats.
Algunos pasos para reacomodar tablas con columnas repetidas, encabezados que no pertenecen, y notas al pie de página.
Wrangle duplicated variable names, weird header rows, and footnotes.
Plotting density distributions with the underlying data as a point swarm.
An R function to put interspersed header rows into their own column.
Wrangling commonly-used data formats. Part 2 - Compound values.
Wrangling commonly-used data formats. Part 1 - GenBank accession tables.
Recoding binary dummy variables into factors. Includes tidyverse and base R approaches.
Resumen del seminario mensual de actualización en literatura científica del grupo de Mastozoología, MZFC-UNAM.
Working with data describing dog breeds and how they are related.
Extracting dog names from tweets by WeRateDogs.
Text analysis applied to mammalian common names.
Using web scraping, raster objects and gridExtra to add images to your plots.
Resumen del seminario mensual de actualización en literatura científica del grupo de Mastozoología, MZFC-UNAM.
My take on the SkepticalScience global warming figure using ggplot, includes R code and data.
Extracting edge lengths from R phylo objects.
Graficando dos variables independientes sin usar ejes duales.
Matching taxonomic names; joint post with Manuela González-Suárez.
La morphologie permet de prédire le régime alimentaire et mode de locomotion des rongeurs.
Summary of our new publication ‘Morphology captures diet and locomotor types in rodents’.
Brief updates on our new publication reviewing the primate extinction crisis.
Cómo identificar los valores máximos o mínimos de una variable para datos agrupados utilizando R y dplyr.
Using R and dplyr to extract minimum or maximum (or both) variable values within groups.
Making diverging stacked bar plots in R using ggplot.
Four ways to draw polygons around groups of points using ggplot2.
Cuatro maneras de agrupar puntos en dos dimensiones con ggplot.
Measuring spatial overlap with point data.
Emoji flags, international research, and tweet analysis in R.
Extraer valores de uno o más raster a partir de coordenadas xy usando R.
Manipulating variables and content in biodiversity datasets using base R and dplyr.
Easy changes to make before sharing tabular data with others.
Visualizing grouped values using labeled side-by-side bars in ggplot2.
Brief updates, March 2016
Summary and visualization of research effort for recently described species of terrestrial mammals. Includes R code and data.
Trends and patterns in mammal extinction risk research, and thoughts on writing a sole-author paper.
Mapping spatial patterns in conservation research using R and ICCB 2011 presentation data.
Using R to fetch elevation for lat/long data through an API.
How long is the average section in a research article? Includes code for downloading and plotting data for five journals.
Example code for visualizing binary trees with dichotomous responses in R, focused on extinction risk modeling.
Why study the publication rates of presentations at ecology, evolution, and conservation conferences.
Summary of research presented at scientific meetings of the Mexican Mammalogy Society (AMMAC) 1991-2012.
Update on my upcoming position and thoughts on the job hunt.
Modeling IUCN Red List data as an ordered response variable. A reproducible #rstats example for terrestrial carnivores.
Inaugural blog post, May 2015. Summary of recent research on Lagomorpha (rabbits, hares, pikas).