1654 search results for "Ggplot2"

Average Annual Population Growth Rate of Tawi-Tawi

May 19, 2012
By
Average Annual Population Growth Rate of Tawi-Tawi

R Codeslibrary(ggplot2) TawiTawiGrowthRate <- as.numeric(c(2.6, 3.3, 5.9, 1.6, 1.8, 5.5, 5))CensalYear <- c("1948-1960","1960-1970","1970-1980","1980-1990","1990-1995","1995-2000","2000-2007") qplot(CensalYear, TawiTawiGrowthRate, xlab ...

Read more »

Example Reproducible Report using R Markdown: Analysis of California Schools Test Data

May 18, 2012
By
Example Reproducible Report using R Markdown:  Analysis of California Schools Test Data

This is a quick set of analyses of the California Test Score dataset. The post was produced using R Markdown in RStudio 0.96. The main purpose of this post is to provide a case study of using R Markdown to prepare a quick reproducible report. It provides examples of using plots, output, in-line R code, and...

Read more »

Bar Graph Colours That Work Well

May 17, 2012
By
Bar Graph Colours That Work Well

Ever since I started using ggplot2 more often at work in order to do graphs, I’ve realized something about the use of colour in bar graphs vs. dot plots: When I’m looking at a graph displayed on the brilliant Viewsonic … Continue reading →

Read more »

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 resultsFor purposes of this article, any mention of homicide rates refers to reported homicide rates.Open vs ClosedIn 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 »

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 »