April 2018

Approximations of Pi: A Random Walk though the Beauty of Pi

April 18, 2018 | Peter Prevos

Various methods to approximate and visualise the digits of pi using the R computing language for statistics. The apparent randomness of the decimal expression of Pi is a source for beautiful visualisations. Continue reading → The post Approximations of Pi: A Random Walk though the Beauty of Pi appeared first on ...
[Read more...]

psychological and geographical distance in text

April 18, 2018 | Jason Timm

Concreteness ratings and the lexvarsdatr package Context & concreteness scores Geographical distance FIN References This post considers a super-clever study presented in Snefjella and Kuperman (2015), in which the authors investigate the relationship between psychological distance and geographical distance using geolocated tweets. General idea/hypothesis: The more we perceive an event/entity ...
[Read more...]

tabr package for guitar tablature now on CRAN

April 18, 2018 | R on Matthew Leonawicz

The tabr package for creating guitar tablature (“tabs”) from R code is now available on CRAN. tabr provides programmatic music notation and a wrapper around LilyPond for creating quality guitar tablature. tabr offers functions for describing and organizing musical structures and wraps around the LilyPond backend. LilyPond is an open ...
[Read more...]

Yet Another Caret Workshop

April 18, 2018 | Computational Social Science

IntroYesterday I gave a workshop on applied predictive modelling with caret at the 1st LSE Computational Social Science hackathon. Organiser privileges. I put together some introductory code and started a simple GitHub repo for the participants, so I thought I’d share it here as well. This is not supposed ...
[Read more...]

Performance: when algorithmics meets mathematics

April 18, 2018 | Florian Privé

In this post, I talk about performance through an efficient algorithm I developed for finding closest points on a map. This algorithm uses both concepts from mathematics and algorithmics. Problem to solve This problem comes from a recent question on StackOverflow. I have two matrices, one is 200K rows long, ...
[Read more...]

Examining POTUS Executive Orders

April 18, 2018 | hrbrmstr

This week’s edition of Data is Plural had two really fun data sets. One is serious fun (the first comprehensive data set on U.S. evictions, and the other I knew about but had forgotten: The Federal Register Executive Order (EO) data set(s). The EO data is also ...
[Read more...]

Uber overtakes taxis in New York City

April 18, 2018 | David Smith

In an update to his analysis of taxi and ride-share trips, Todd Schnieder reports that the number of daily Uber rides exceeds the number of taxi rides in New York City, as of November 2017. The data is provided by the New York Taxi and Limousine Commission, and the analysis and ... [Read more...]

setting ggplot2 background with ggbackground

April 18, 2018 | R on Guangchuang Yu

ggimage 0.1.4 is available on CRAN. This release introduces a new function called ggbackground for setting image background as ggplot canvas.
require(ggplot2)
p <- ggplot(iris) + aes(x = Sepal.Length, y = Sepal.Width, color=Species) + 
    geom_point(size=5) + theme_classic()
Suppose we have the above ggplot object, p, the only thing we need to do is passing the p with an image file name (local or remote) to ggbackground, ...
[Read more...]

P is for Principal Components Analysis (PCA)

April 18, 2018 |

P is for Principal Components Analysis This month, I've talked about some approaches for testing the underlying latent variables (or factors) in a set of measurement data. Confirmatory factor analysis is one method of examining latent variables when you know ahead of time which observed variables are associated with which ... [Read more...]

Machine Learning as a Service

April 17, 2018 | Matt

What is Machine Learning as a Service? With all of this news coming out about Cambridge Analytica (and how they have leveraged/weaponized data science for…Continue ReadingMachine Learning as a Service
[Read more...]

Performance considerations with sparse matrices in Armadillo

April 17, 2018 | Rcpp Gallery

Introduction Besides outstanding support for dense matrices, the Armadillo library also provides a great way to manipulate sparse matrices in C++. However, the performance characteristics of dealing with sparse matrices may be surprising if one is only familiar with dense matrices. This is a collection of observations on getting best ... [Read more...]

[How to] Write a purrr-like adverb

April 17, 2018 | Colin Fay

Create your own safely, compose and friends! What is an adverb If you read carefully the purrr documentation, you’ll find this simple explanation : Adverbs modify the action of a function; taking a function as input and returning a function with modified action as output. In other words, adverbs take ... [Read more...]

Animated Directional Chord Diagrams

April 17, 2018 | R-bloggers on Guy Abel

Background A little while ago my paper in International Migration Review on global migration flow estimates came out online. The paper includes a number of directional chord diagrams to visualize the estimates. Recently I have been playing around tweenr and the magick packages for animated population pyramids. In this post ... [Read more...]

Animated Directional Chord Diagrams

April 17, 2018 | R-bloggers on Guy Abel

Background A little while ago my paper in International Migration Review on global migration flow estimates came out online. The paper includes a number of directional chord diagrams to visualize the estimates. Recently I have been playing around tweenr and the magick packages for animated population pyramids. In this post ... [Read more...]
1 4 5 6 7 8 15

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)