ggplot2 is a very useful package with simple syntax for many types of graphs. First part is to define the data.frame to be used:
> gg = ggplot(bwdf, aes(x=age, y=lwt))
Then add layers of plot to this.
> gg = gg + geom_point()
For plotting, just call the gg object:
Comments & Feedback