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: data science

## 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…

## Python Visualization with Matplotlib

Matplotlib Matplotlib is one of the Python’s libraries that can be used to create a visualization. Other libraries are available such as: seaborn bokeh Altair –> Altair is a declarative statistical visualization library for Python. built on top of the powerful Vega-Lite visualization grammar.p source 1 source 2 Seaborn and Bokeh will be discussed in different…

## 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….

## Python: Getting Started

In the era of big data and data science, it is a must to have Python programming capability. I started learning Python two years ago when I took the Web Science offered by Dr. Michael Nelson during my master’s at ODU. In my personal opinion, I found that Python is a very straightforward language and very intuitive to…

## Creating Simple Visualization Dashboard with Shiny

If you claim yourself as a statistician, but you never use or – even worse – never heard of R, well, you should start learning it right now. R never stops to mesmerize me. It’s a really cool language with a lot of great packages to help a statistician like me playing with data. Knowing that R…