1658 search results for "Ggplot2"

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

<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 »

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 »

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 »

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 »