March 2018

ggplot2: Legend – Part 5

March 31, 2018 | Rsquared Academy Blog

Introduction This is the 17th post in the series Elegant Data Visualization with ggplot2. In the previous post, we learnt how to modify the legend of plot when size is mapped to continuous variable. In this post, we will learn to modify the following using scale_alpha_continuous() when alpha ...
[Read more...]

oneliner – a new style guide for styler

March 31, 2018 | Lorenz Walthert

I am happy to introduce oneliner, a package that implements the one-line-style as a third-party style guide ready to use with styler. Hence, after the tidyverse style guide, this is the first third-party style guide for styler I am aware of - and a particularly useful one. Let’s see ... [Read more...]

oneliner – a new style guide for styler

March 31, 2018 | Lorenz Walthert

I am happy to introduce oneliner, a package that implements the one-line-style as a third-party style guide ready to use with styler. Hence, after the tidyverse style guide, this is the first third-party style guide for styler I am aware of - and a particularly useful one. Let’s see ... [Read more...]

oneliner – a new style guide for styler

March 31, 2018 | Lorenz Walthert

I am happy to introduce oneliner, a package that implements the one-line-style as a third-party style guide ready to use with styler. Hence, after the tidyverse style guide, this is the first third-party style guide for styler I am aware of - and a particularly useful one. Let’s see ... [Read more...]

Le Monde puzzle [#1048]

March 31, 2018 | xi'an

An arithmetic Le Monde mathematical puzzle: A magical integer m is such that the remainder of the division of any prime number p by m is either a prime number or 1. What is the unique magical integer between 25 and 100? And is there any less than 25? The question is dead easy ...
[Read more...]

Package Paths in R

March 31, 2018 | quintuitive

Recently, while working on the Azure Data Lake R extension, I had to figure out a good way to create a zip file containing a package together with all its dependencies. This came down to understanding where does R store and search for packages. Despite the documentation, it did require ... [Read more...]

The 10 Data Science Crack Commandments

March 31, 2018 | MikeJackTzen

 It’s the ten crack commandments, what? homie can’t tell me nothing about this code Can’t tell me nothing about these #rstats Number 1, make a function from a script. Everyone knows we’re to busy to be copy/pasting shit http://adv-r.had.co.nz/Functions.html Number 2, ... [Read more...]

Advanced Techniques With Raster Data – Part 3: Exercises

March 31, 2018 | João Gonçalves

Background In this post, the ninth of the geospatial processing series with raster data, I will focus on interpolating and modeling air surface temperature data recorded at weather stations. For this purpose I will explore regression-kriging (RK), a spatial prediction technique commonly used in geostatistics that combines a regression of ...
[Read more...]

Analyzing Professional Sports Team Colors with R

March 30, 2018 | r on Tony ElHabr

When working with the ggplot2 package, I often find myself playing around with colors for longer than I probably should be. I think that this is because I know that the right color scheme can greatly enhance the information that a plot portrays; and, conversely, choosing an uncomplimentary palette can ...
[Read more...]

Loops in R – Exercises

March 30, 2018 | sindri

Using loops is generally discouraged in R when it is possible to avoid them using vectorized alternatives. Vectorized solution are be both faster to write, read and execute – except sometimes they aren’t and the definition of vectorization isn’t always straightforward. In any event, solutions using loops can be: ...
[Read more...]

Collapsing Categories or Values

March 29, 2018 | fishR Blog

Introduction I have received a few queries recently that can be categorized as “How do I collapse a list of categories or values into a shorter list of category or values?” For example, one user wanted to collapse species of fish into ... [Read more...]
1 2 3 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)