Here are the codes:
Friday, March 1, 2013
Overlapping Histogram in R
While preparing a class exercise involving the use of overlaying of histogram, I searched Google on possible article or discussion on the said topic. Luckily, I found a blog where the author demonstrated an R function to create an overlapping histogram. However, a comment from a guy also showed the same output using transparency. Below were the sample codes that can be used to generate overlapping histogram in R as based on the blog and the viewers comment.
Here are the codes:
Here are the codes:
Friday, October 26, 2012
NSCB Sexy Stats Version 2
This was a revised version of my previous post about the NSCB article. With the suggestion from Tal Galili, below were the new pie charts and the R codes to produce these plots by directly scrapping the data from the webpage using XML and RColorBrewer pagkage.
Unemployment by Age Group
Unemployment by Gender
Unemployment by Civil Status
Unemployment by Educational Level
Unemployment by Age Group
Unemployment by Gender
Unemployment by Civil Status
Unemployment by Educational Level
Labels:
NSCB,
Philippines,
R,
RColorBrewer,
Unemployment,
XML
Thursday, October 25, 2012
NSCB Sexy Statistics (Unemployment)
Recently, my friend posted on her Facebook account about the article published by the National Statistical Coordination Board (NSCB) about poverty and unemployment in the country. Looking at the report I saw a lot of tables, so I thought why not use R to make some graphs out of these tables (with some inspiration from the mazmascience).
Percent Unemployed Per Age Group
Percent Unemployed by Sex Group
Wednesday, August 8, 2012
Rainfall Amount Flooding Quezon City Philippines
August 6-7 Rainfall on Metro Manila
Majority of Metro Manila is affected by floods. Looking at the hourly data from PAGASA weather station located at Bicutan, Taguig, the graph below will gave the viewers of this blog on the rainfall situation in Manila from August 6 (12:00am)-7(11:15 pm), 2012.
Tuesday, August 7, 2012
Provincial Monthly Rainfall of the Philippines from WORLDCLIM
Preparing for a future conference on climate change, I downloaded and extracted average monthly rainfall in the Philippines from worldclim.org. Using maptools, raster, and animation package in R, I produced an animation of average monthly rainfall of the country.
Monday, August 6, 2012
Provincial Map using GADM
Subscribe to:
Posts (Atom)












