R

4 posts
R packages useful for sports analytics

If you’re into R and analyzing sports data, you’ll want to save this CRAN task view: This CRAN Task View contains a list of packages useful for sports analytics. Most of the packages are sport-specific and are grouped as such. However, we also include a General section for packages that provide ancillary functionality relevant to sports analytics (e.g., team-themed color palettes), and a Modeling section for packages useful for statistical...

0 0
Procedural dungeons in R

Matt Dray is developing a package in R that runs a text-based game. Part of that game requires procedural dungeons that are different each time you play. Tags: game, Matt Dray, R

0 0
✚ How to Make Bubble Clusters in R

Clusters of bubbles might not be the most visually precise way to show counts, but the elements can lend weight to the individuals that aggregates represent as a whole. The one-to-one ratio between element and count feels less abstract than a bar or a line. In this tutorial you learn how to create this one-to-one ratio. Become a member for access to this — plus tutorials, courses, and guides.

0 0
Ross Ihaka, co-creator of R, reflects on the language

NZ Herald talked to Ross Ihaka, one of the creators of R: Today, R is depended upon around the world by analysts, data scientists and big-name companies like Facebook, Google, Amazon and the New York Times, and it’s garnered Ihaka something of a rockstar status in the field of data science and statistics. He’s received numerous accolades over the years recognising his work, such as the Royal Society of New...

0 0
✚ How to Make Cartograms in R

Maps are a good way to visualize spatial data, but to maintain geographic accuracy, there are often tradeoffs. For example, a choropleth map, which shades regions by a specified metric, maintains the same shape regardless of the data you color by. Larger regions always take up more space on the screen and smaller regions take up less space. Cartograms are a response to this challenge by sizing regions to match...

0 0
Colors for All, R package

If you use color as a visual encoding, you should make sure every one can actually see the differences in your scale. The cols4All package from Martijn Tennekes can help by ranking and categorizing a wide set of color schemes. Color palettes are well organized and made consistent with each other. Moreover, they are scored on several aspects: color-blind-friendliness, the presence of intense colors (which should be avoided), the overall...

0 0
✚ How to Make a Line Chart with a Color Gradient in R

It’s typically straightforward to make and read a line chart. The position on the line represents a value, and the slope between points represents a rate of change. Usually a line chart that represents a single time series uses a solid color for the line. But while messing with a heatmap, which uses color as its primary visual encoding, I was curious what you could show if you introduced a...

0 0
✚ How to make UpSet plots in R, with ggplot2 and ggupset

In addition to a great format for visual jokes, Venn diagrams can clearly show overlap between sets. Sets, as in set theory, can be understood as objects belonging to one or more collections. The classic examples in mathematics are natural numbers, integers, rational and real numbers. But sets are everywhere. Become a member for access to this — plus tutorials, courses, and guides.

0 0
A Quick and Easy Way to Make Spiral Charts in R

Many people were dismayed by a spiral chart that served as a header image for a New York Times Opinion piece. I thought it was fine. Others had other opinions. Disregarding whether or not it was the “best” way to visualize the data, clearly the more important question is how to make such a chart. Here’s how to make it in R. Read More

0 0
✚ How to Make a Custom Stacked Area Chart in R

Stacked area charts are a standard chart type that shows how a categorical distribution changes over time. There are packages that can do most of the work for you, but for a recent chart I found myself wanting more control over how the chart was drawn, which led me to drawing from scratch. Become a member for access to this — plus tutorials, courses, and guides.

0 0