1652 search results for "Ggplot2"

Linear programming in R: an lpSolveAPI example

July 14, 2012
By
Linear programming in R: an lpSolveAPI example

First of all, a shout out to R-bloggers for adding my feed to their website! Linear programming is a valuable instrument when it comes to decision making. This post shows how R in conjunction with the lpSolveAPI package, can be used to build a linear programming model and to analyse  Read more »

Linear programming in R: an lpSolveAPI example

July 14, 2012
By
Linear programming in R: an lpSolveAPI example

First of all, a shout out to R-bloggers for adding my feed to their website! Linear programming is a valuable instrument when it comes to decision making. This post shows how R in conjunction with the lpSolveAPI package, can be used to build a linear programming model and to analyse its results. The lpSolveAPI package provides a complete implementation of the lp_solve...

Read more »

Smartphone operating system share mosaic plot

July 13, 2012
By
Smartphone operating system share mosaic plot

(This article was first published on Actuarially (Matt Malin), and kindly contributed to R-bloggers) Smartphone operating system share mosaic plot Author: Matt Malin The increasing dominance of smartphones across the market is a very common topic in technology and news sites, with analysis of operating system share and phone types often shown in the media. Stumbling across this article...

Read more »

Processing Public Data with R

July 13, 2012
By
Processing Public Data with R

I use R aplenty in analysis and thought it might be worthwhile for some to see the typical process a relative newcomer goes through in extracting and analyzing public datasets In this instance I happen to be looking at Canadian air pollution statistics. The data I am interested in is available on the Ontario Ministry

Read more »

Using discrete-event simulation to simulate hospital processes

July 12, 2012
By
Using discrete-event simulation to simulate hospital processes

Discrete-event simulation is a very useful tool when it comes to simulating alternative scenario’s for current of future business operations. Let’s take the following case; Patients of an outpatient diabetes clinic are complaining about long waiting times, this seems to have an adverse effect on patient satisfaction and patient retention.  Read more »

Health Care Costs – Part 2, "Unhealthy Things Not Related to the Problem"

July 11, 2012
By
Health Care Costs – Part 2, "Unhealthy Things Not Related to the Problem"

Lighting UpWay back in the day, folks believed that smoking was not only cool but also completely safe. As Marcel Danesi states in his book Of Cigarettes, High Heels, and Other Interesting Things, Second Edition: An Introduction to Semiotics ...

Read more »

Sourcing Code from GitHub

July 10, 2012
By
Sourcing Code from GitHub

In previous posts I described how to input data stored on GitHub directly into R. You can do the same thing with source code stored on GitHub. Hadley Wickham has actually made the whole process easier by combining the getURL, textConnection, and source commands into one function: source_url. This is in his devtools...

Read more »

Review: Kölner R Meeting 6 July 2012

July 10, 2012
By
Review: Kölner R Meeting 6 July 2012

The second Cologne R user meeting took place last Friday, 6 July 2012, at the Institute of Sociology. Thanks to Bernd Weiß, who provided the meeting room, we didn't have to worry about the infrastructure, like we did at our first gathering. Again, we ...

Read more »

Fumblings with Ranked Likert Scale Data in R

July 9, 2012
By
Fumblings with Ranked Likert Scale Data in R

The code is horrible and the visualisations quite possibly misleading, but I’m dead tired and there are a couple of tricks in the following R code that I want to remember, so here’s a contrived bit of fumbling with some data of the form: enjoyCompany tooMuchFamily 1 strongly agree strongly disagree 2 strongly agree strongly

Read more »

A Napa Valley wine tasting map, made with R and ggmap

July 9, 2012
By
A Napa Valley wine tasting map, made with R and ggmap

R has had a maps package available since the very early days. It's great for simple geographic maps, but the political boundaries can be out of date. For more detailed maps, you can also download shape files and use the sp package to draw borders directly. But for accurate and attractive maps of countries, roads and satellite imagery, nothing...

Read more »