Posts Tagged ‘ qplot ’

How to draw a curve() with ggplot2

June 3, 2012
By
How to draw a curve() with ggplot2

ggplot2 improves the graphics drawn with R. A (very) short adaptation time is needed to find how to make graphs equivalent to the ones of graphics. For example, to draw the curve of a function, there is no function similar to curve(). You have to use qplot() by setting the stat and geom arguments as

Read more »

How to plot lattice and ggplot2 graphs with FastRWeb

April 10, 2012
By
How to plot lattice and ggplot2 graphs with FastRWeb

With print() If you are an advanced R user, you probably know the lattice and the ggplot2 packages. They allow you to plot elegant graphics with less code (Hocking, 2009 and Sueur, 2010). If you know these two packages, you should hardly use plot() for your graphs. If you read my article on FastRWeb, you

Read more »

Creating scatter plots using ggplot2

November 6, 2009
By
Creating scatter plots using ggplot2

The ggplot2 package can be used as an alternative to lattice for producing high quality graphics in R. The package provides a framework and hopefully simple interface to producing graphs and is inspired by the grammar of graphics. The main function for producing graphs in this package is qplot, which stands for quick plot. The first

Read more »