2028 search results for "ggplot"

Emulating local static variables in R

May 17, 2012
By
Emulating local static variables in R

Recently I was writing a code allowing to plot multiple ggplot2 plots on one page. I wanted to replicate standard behavior of  plot  function that plots graphs in sequence according to  mfrow/ mfcol option in par...

Read more »

Getting Started with R Markdown, knitr, and Rstudio 0.96

May 16, 2012
By
Getting Started with R Markdown, knitr, and Rstudio 0.96

This post examines the features of R Markdown using knitr in Rstudio 0.96. This combination of tools provides an exciting improvement in usability for reproducible analysis. Specifically, this post (1) discusses getting started with R Markdown and knitr in Rstudio 0.96; (2) provides a basic example of producing console output and plots...

Read more »

Population of Iligan City from 1970 to 2010

May 16, 2012
By
Population of Iligan City from 1970 to 2010

R Codeslibrary(ggplot2)library(grDevices)IliganCity <- c(104493, 118778, 167358, 226568, 273004, 285061, 308046, 322821)CensalYear <- c("1970", "1975", "1980", "1990", "1995", "2000", "2007", "2010")qplot(CensalYear, IliganCity, xlab = expression...

Read more »

Global Homicide Rates by Government Type

May 16, 2012
By
Global Homicide Rates by Government Type

Surprising results For purposes of this article, any mention of homicide rates refers to reported homicide rates. Open vs Closed In mostly open countries (full democracies), the homicide rates are rather low when compared to other types of...

Read more »

My take on polar bar (a.k.a. consultant’s) charts

May 16, 2012
By
My take on polar bar (a.k.a. consultant’s) charts

Once upon a time, when I was working at Johnson & Johnson (pharma branch), I was surrounded by a bunch of programmers working to develop (among other things) a nifty piece of software for internal use. Part of it was later released as freeware, cal...

Read more »

Revolution Newsletter: May 2012

May 16, 2012
By

The most recent edition of the Revolution Newsletter is out. The news section is below, and you can read the full May edition (with highlights from this blog and community events) online. You can subscribe to the Revolution Newsletter to get it monthly via email. New R Training Courses Announced. Three new R courses from leading R experts are...

Read more »

Express Divorce in Mexico

May 16, 2012
By
Express Divorce in Mexico

On October 2008 Mexico's capital, the Federal District, approved a version of no-fault divorce locally known as "express divorce". With the new law the requesting spouse no longer had to provide a cause to dissolve the marriage and the couple no longer had to live apart before filing for divorce. Furthermore, the process of...

Read more »

Population of Tawi-Tawi from 1903 to 2010

May 16, 2012
By
Population of Tawi-Tawi from 1903 to 2010

R Codeslibrary(ggplot2)library(colorRamps)TawiTawiPop <- c(17000, 45000, 46000, 59000, 79000, 110000, 143000, 195000, 228204, 250718, 322317, 450346, 366550)YearNames <- c("1903", "1918", "1939", "1948", "1960", "1970", "1975", "1...

Read more »

Functions ddply and melt make plotting summary stats in R more tolerable

May 15, 2012
By
Functions ddply and melt make plotting summary stats in R more tolerable

The main reason why I have usually chosen to use excel to make my plots at work is because I had difficulty feeding the summary stats in R into a plotting function.  One thing I learned this week is how … Continue reading →

Read more »

New courses from R gurus

May 14, 2012
By

Looking to learn R, or to expand your R skills for data visualization or package development? Here are some R courses presented by the experts you may be interested in: June 19-20: Visualization in R with ggplot2. This course presented by Garrett Grolemund & Dr. Winston Chang of Rice University is also a web-based course with live presentation. This...

Read more »