In the first part of the ggplot series, we have talked about the geom and the scale layers. In visualization terms, faceting means juxtaposing several plots together. This is especially useful when we want to compare several categories together. Now, let’s jump into several ways of faceting in ggplot. 1. facet_grid() facet_grid() is used for…
Category: R
Understanding ggplot (Part 1) – The Grammar of Graphic
Hi all, There are two ways of creating a graph in R: using the base R plot and using the wonderful package named ggplot2. But in this post, I will be focusing on ggplot. Since ggplot is a very broad concept, I plan to write it in several posts. For the first part, I will try…
Let’s Shine with R Shiny (An Intro)
Last week, I gave a talk at RLadies Jakarta 6th meetup about an intro to R Shiny. Although I already published the presentation on R-Ladies Jakarta’s GitHub, I still feel the urge of sharing it in a blog format. That way, I can explain it in more detail. So, here we go. Enjoy 🙂 What…
Let’s Get Down to R Markdown
A Glimpse of R Markdown Do you know that R is more than just about data wrangling and analysis? Well, it turns out that you can also turn your series of code and analysis into a tidy and beautiful report using R Markdown from RStudio. R Markdown is a simple formatting syntax for authoring HTML,…
Dealing with Conditional in R
Bonjour! In our daily life, we often face a condition where we have to anticipate and prepare for more than one outcome that might happen as a result of something that we have done. In a programming world, this situation is called a conditional statement. In R, there are two ways of how we can…
The Basic R
Hello..hello…I am falling in love deeply with R. That’s why in this current post, I’d still like to ramble and blabber about R. For RÂ newbie like me, it’s essential to know the basic data type in R, how to obtain data from various sources such as csv, xls, or Rstudio dataset, what is matrices and…
Getting Started with R
What is R? R is a powerful and flexible tool/language which is free and can be used from calculating data sets to creating graphs and maps. Some other advantages of using R is that it has an interactive language, data structures, graphics availability, a developed community, and the advantage of adding more functionalities through an entire ecosystem of packages….