1994 search results for "ggplot"

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 »

ggplot + powerpoint = wall + head … solution?

September 2, 2013
By
ggplot + powerpoint = wall + head … solution?

Confession, by ‘solution?’ I literally mean I’m asking for your thoughts on a solution. Like it or lump it I do a lot of graphs for presentations, largely in powerpoint. That’s the way my colleagues/industry work(s) and it’s not about … Continue reading →

Read more »

Visualizing the Forbes-CCAP University Rankings using ggplot2, rCharts, googleVis, and the shiny server

August 27, 2013
By
Visualizing the Forbes-CCAP University Rankings using ggplot2, rCharts, googleVis, and the shiny server

President Obama is pushing for higher education reform and the development of a rating system for Universities is a critical component of it. These ratings are likely to be based on several measures, such as graduation rates, earnings of graduates, and...

Read more »

Mapping Australian electoral divisions with ggplot2

August 18, 2013
By
Mapping Australian electoral divisions with ggplot2

I’ve seen some creative visualisations of issues surrounding the Australian election recently though not as many maps as I expected. ‘ggplot2′ is the go-to package for plotting in R so I thought I’d see if I could plot the Australian electoral divisions with ggplot2. By using the Australian Electoral Commission’s GIS mapping coordinates and mutilating

Read more »

ggplot2 meet d3

August 7, 2013
By

With great libraries, just a couple lines of code can do amazing things.  For instance, let’s limit ourselves to less than 10 lines of code and see what ggplot2 and d3 can do.  We will use gridSVG as discussed in yesterday’s post I Want ggplot2/lattice and d3 (gridSVG–The Glue) to expose ggplot2 to d3.  Thanks

Read more »

I Want ggplot2/lattice and d3 (gridSVG–The Glue)

August 6, 2013
By
I Want ggplot2/lattice and d3 (gridSVG–The Glue)

I really like interactive graphics, especially when they come straight from R.  I posted a lot about rCharts, but it is not the only way.  In my mind there are three types of glue to link R to SVG/HTML/Javascript: Let R do the data and then send the data to Javascript to create the SVG graphics....

Read more »

ggplot2 with Noam Ross theme

July 26, 2013
By
ggplot2 with Noam Ross theme

When I first saw Noam Ross' blog post "The null model for age effects with overdispersed infection", I immediately liked the look of his ggplot2 graphs. I was even more delighted when I discovered that he has made his theme available on github. Even though I am all into rCharts, I still love a beautiful publication...

Read more »