Tags » Ggplot2

A Simple Illustration of Robust Regression

The Tukey resistant line is one method of fitting a line that is resistant or insensitive to outliers. Actually, there was a time when “robust” fitting was a popular research topic and there are a number of procedures for implementing this type of fitting. 270 more words

4 Plotting

Saving graphics in R

This is intended to be a minimalistic guide on how to save graphics in an R environment giving tips on formats and codes.

1. What format? 904 more words


Making Your Research Reproducible with R

Post provided by Laura Graham

Reproducible research is important for three main reasons. Firstly, it makes it much easier to revisit a project a few months down the line, for example when making revisions to a paper which has been through peer review. 1,247 more words


Fitting power-law with {poweRlaw}


If you have a vector dataset and suppose it has a power-law distribution you have to investigate it closer. Even in graph theory in case of scale-free graphs, power-law distribution is a common theme. 1,255 more words

Open Code

Building Visualizations Using City Open Data: Philly School Comparisons


There is a collection of notes that accompanies me throughout my day, slipped into the deep pockets of my backpack. The collection consists of small notebooks and post-its featuring sentence fragments written in inky Sharpie or scratched down frantically using some pen that was (of course) dying at the time.  2,151 more words


How to add a background image to ggplot2 graphs

When producing so called infographics, it is rather common to use images rather than a mere grid as background. In this blog post, I will show how to use a background image with… 501 more words

Visualizing Data

Arranging ggplot2 graphs on a page

How do you arrange non-simmetric plots in ggplot2?
With the print command:

After installing these two packages: install.packages(“grid”, “ggplot2”), load the  libraries:
428 more words