Introduction to leaflegend

February 3, 2021 | R on Thomas Roh

leaflegend is a package to extend the customization of legends for the leaflet package in R. The addLegend function provides some great out of the box legends based on the internal palette functions, but styling of the legend components has to be don...
[Read more...]

Cracking and packing: a simple gerrymander simulation

February 3, 2021 | Jason Timm

A brief note on gerrymandering, and cracking and packing (see Warrington 2018 for a proper discussion). Specifically, a simple simulation demonstrating how gross partisan asymmetries in state legislatures can be crafted from perfectly symmetrical statewide populations. Per function below, we designate individuals in a population of N voters as either Republican ...
[Read more...]

What’s New on RStudio Cloud – February 2021

February 3, 2021 | Robby Shaver

We roll out new features and improvements regularly on RStudio Cloud, typically every week or two. You can always view the list of significant new features on Cloud’s What’s New page, which you can access via the left hand navigator in Cloud. But to go into a bit ... [Read more...]

Some thoughts on rstudio::global talks

February 3, 2021 | R Views

The fifty-five videos from last month’s rstudio::global conference are now available online. You will find them at the link above arranged in ten categories (Keynotes, Data for Good, Language Interop, Learning, Modeling, Organizational Tooling, Package Dev, Programming, Teaching, and Visualization) that reflect fundamental areas of technical and community ...
[Read more...]

Simple audio classification with torch

February 3, 2021 | Athos Damiani

This article translates Daniel Falbel’s ‘Simple Audio Classification’ article from tensorflow/keras to torch/torchaudio. The main goal is to introduce torchaudio and illustrate its contributions to the torch ecosystem. Here, we focus on a popular da...
[Read more...]

hard birthday problem

February 3, 2021 | xi'an

Click to access birthday.pdf From an X validated question, found that WordPress now allows for direct link to pdf documents, like the above paper by my old friend Anirban Das Gupta! The question is about estimating a number M of individuals with N distinct birth dates over a year ...
[Read more...]

anndata for R

February 2, 2021 | R | Robrecht Cannoodt

anndata is a commonly used Python package for keeping track of data and learned annotations, and can be used to read from and write to the h5ad file format. It is also the main data format used in the scanpy python package (Wolf, Angerer, and Theis 2... [Read more...]

anndata: annotated data in R

February 2, 2021 | R | Robrecht Cannoodt

anndata is a commonly used Python package for keeping track of data and learned annotations, and can be used to read from and write to the h5ad file format. It is also the main data format used in the scanpy python package (Wolf, Angerer, and Theis 2... [Read more...]

Using random effects in GAMs with mgcv

February 2, 2021 | Gavin L. Simpson

There are lots of choices for fitting generalized linear mixed effects models within R, but if you want to include smooth functions of covariates, the choices are limited. One option is to fit the model using gamm() from the mgcv ???? or gamm4() from the gamm4 ????, which use lme() (nlme ????) or ...
[Read more...]
1 43 44 45 46 47 1,826