In this tutorial, we will see examples of using element_blank() to control the look of non-data aspects of a plot made with ggplot2. This is fourth in the series of understanding how to change four different elements of ggplot2’s theme systems. element_text() element_line() element_rect() element_blank() We saw how to use element_text() to change the looks […]
R Tips
Row-wise operations in R: compute row means in tidyverse
This tutorial shows how to perform row-wise operations in R using tidyverse. We will use three key functions, rowwise(), c_across() and rowMeans() to perform to perform row-wise operations on a dataframe. rowwise() and c_across() functions are from dplyr. rowwise() function is available in dplyr 1.0.0+ to perform row-wise operations, like computing row means or other […]
How To Compute Column Means in R with tidyverse
In this bite sized post, we will see how to compute column means in R using tidyverse. We will compute column means for a couple of scenarios. First we will see how to compute column means of a dataframe with no missing values. And then we will compute column means with missing values. We will […]
31 Days of #rstats Resources Advent
R community is amazing with sharing excellent learning resources for free. And it seems never ending!. If you are like me, you might have missed a lot of “#rstats resource advent” daily tweets containing fantastic R resources from RStudio’s Mara Averick (@dataandme). Not to worry, you have all the #rstats resource advent tweets from Day […]
Most Useful R Packages for Data Science
Ever wondered what are the most useful R packages for doing Data Science? Don’t have to wonder anymore, RStudio has collated a list of most useful R packages in its github repository titled “RStartHere“. How did R Studio come up with the list for doing Data Science? RStudio used the iconic Data Science work flow […]