1972 search results for "ggplot"

R & GGPLOT – Expanded Plots

November 26, 2013
By
R & GGPLOT – Expanded Plots

>>GET THE R CODE<< R and GGPLOT are great! There are some things, however, that I want to be able to do easily. For these things I have to create template codes, which I want to share with you! This time around I wanted to show you how you can create “zoomed” areas of a

Read more »

How to format plots for publication using ggplot2 (with some help from Inkscape)

November 20, 2013
By
How to format plots for publication using ggplot2 (with some help from Inkscape)

The following is the code from a presentation made by Rosemary Hartman to the Davis R Users’ Group. I’ve run the code through the spin function in knitr to produce this post. Download the script to walk through here. First, make your plot. I am going to use the data already in R about sleep habits...

Read more »

Using R: Coloured sizeplot with ggplot2

November 17, 2013
By
Using R: Coloured sizeplot with ggplot2

Someone asked about this and I though the solution with ggplot2 was pretty neat. Imagine that you have a scatterplot with some points in the exact same coordinates, and to reduce overplotting you want to have the size of the dot indicating the number of data points that fall on it. At the same time

Read more »

ggplot2: Cheatsheet for Scatterplots

November 13, 2013
By

&lt;p&gt;Loading ...&lt;/p&gt;

Read more »

Replication of few graphs/charts in base R, ggplot2, and rCharts

November 7, 2013
By

In this post, I use a simulated dataset (7 variables -3 factor and 4 numeric - and a sample size of 50) to create graphs/charts using base R, and replicate them using ggplot2, and rCharts. This is not an attempt to create an exhaustive database of grap...

Read more »

Visual interpretation of interaction terms in linear models with ggplot #rstats

October 31, 2013
By
Visual interpretation of interaction terms in linear models with ggplot #rstats

I haven’t used interaction terms in (generalized) linear model quite often yet. However, recently I have had some situations where I tried to compute regression models with interaction terms and was wondering how to interprete the results. Just looking at the estimates won’t help much in such cases. One approach used by some people is

Read more »

Manipulation of the legend in ggplot2 (R)

October 25, 2013
By
Manipulation of the legend in ggplot2 (R)

You are one click away from a post on the various way one can change the legend title in ggplot2, combine several aesthetic, remove the legend in ggplot2. http://rpubs.com/hughes/10012Filed under: R and Stat Tagged: ggplot2, R

Read more »

Subsidies, Revenues, and Expenses of NCAA Division I Public Schools Athletic Departments – Visualizations using rCharts and animint generated interactive ggplots

October 18, 2013
By

Two interesting articles in recent issues of The Atlantic linked sports to tax-payer dollars. The first few lines of Gregg Easterbrook’s article, titled How the NFL Fleeces Taxpayers, were: “Taxpayers fund the stadiums, antitrust law doesn't apply to broadcast deals, the league enjoys nonprofit status, and Commissioner Roger Goodell makes $30 million a year. It's...

Read more »

Line Breaks Between Words in Axis Labels in ggplot in R

October 17, 2013
By
Line Breaks Between Words in Axis Labels in ggplot in R

Sometimes when plotting factor variables in R, the graphics can look pretty messy thanks to long factor levels. If the level attributes have multiple words, there is an easy fix to this that often makes the axis labels look much cleaner.Without Line Br...

Read more »

Hungarian RUG on ggplot2

October 17, 2013
By
Hungarian RUG on ggplot2

The rather new-born Budapest Users of R Network, the only Hungarian R User Group so far, with already 85+ members, continues its really young traditions to have talks on data visualization and providing a place for Hungarian R users to socialize while having some free pizza and drinks.Our next session will focus on...

Read more »