I decided to go use ggplot2 more frequently and go through everything. For future reference I will start a series of blog posts on ggplot2.
Scatter plot:
library(ggplot2) # producing some data data <- data.frame(x=1:10, y=rnorm(10)) # initiating a plot p <- ggplot(data, aes(x,y)) # plotting as it is p + geom_point() # adjusting size of the points p + geom_point(aes(size=2)) # making the size dynamic p + geom_point(aes(size=y))
In my next post, I will change the axis labels.