2061 search results for "ggplot"

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

<p>Loading ...</p>

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 »

Using ggplot2

October 11, 2013
By
Using ggplot2

I have a standard code for ggplot2 which I use to make line graphs, scatter plots, and histograms. For lines or scatters: p<- ggplot(x, aes(x=Year, y=Rank, colour=Uni, group=Uni)) #colour lines by variable Uni #group Uni labelled variables in the same line Then:  p + #you get an error if not for this step geom_line(size=1.2) +

Read more »

A nifty area plot (or a bootleg of a ggplot geom)

September 17, 2013
By
A nifty area plot (or a bootleg of a ggplot geom)

The ideas for most of my blogs usually come from half-baked attempts to create some neat or useful feature that hasn’t been implemented in R. These ideas might come from some analysis I’ve used in my own research or from some other creation meant to save time. More often than not, my blogs are motivated

Read more »