Recent posts

Spatial Visualization with ggmap R package

3 minute read

ggmap, which is an R package built to visualize with map, is very similar to ggplot2. And its output is ‘ggplot’ class, which means it also support layered visualization just like ggplot2. I will demonstrate with two examples “Crimes in San Fransisco” and “Taxi in Porto”. The data of both examples are taken from kaggle. some basics of ggmap: get_map: is the function to download map from source (e.g. google/openstreetmap). some parameters can play with: location: the longitude and the...

Tree based models in R on Titanic Data

5 minute read

This is the first time I blog my journey of learning data science, which starts from the first kaggle competition I attempted - the Titanic. In this competition, we are asked to predict the survival of passengers onboard, with some information given, such as age, gender, ticket fare… Translated letter reveals first hand account of the “unforgettable scenes where horror mixed with sublime heroism” as the Titanic sank Photo: Getty Images How bad is this tragedy? Let’s take some exploratory d...