ancre Use cex.main or cex.sub to change the size of the title or subtitle in R
title(main="Main title", cex.main=0.85)
ancre Use cex.main or cex.sub to change the size of the title or subtitle in R
title(main="Main title", cex.main=0.85)
R graph by examples
http://rgraphics.limnology.wisc.edu/index.php
R plot with examples
http://www.harding.edu/fmccown/r/
Title for muti plots in R
mtext(‘Title’, outer=TRUE)
Using a value of a variable in title
Use paste and eval.
plot(x, main = paste("Cluster", eval(i))
Great illustration of plot and margin in R
http://research.stowers-institute.org/efg/R/Graphics/Basics/mar-oma/index.htm
2nd axis in R
Use axis. side is where the second axis goes. Side 3 is the top x-axis. Side 4 is the right y-axis. With put the 1st axis thick for the at and lab is for the text.
Here is the example.
axis(side=3, at = c(0.1, 0.2, 0.3, 0.4, 0.5), lab = c(10, 5, 3, 2.5, 2))
Multi plots in a page
gridExtra package makes it easier to put multiple plots generated by ggplot2 in a page equivalent to par(mfrow= ).
Example:
http://code.google.com/p/gridextra/wiki/arrange
came across through a conversation in StackOverflow
http://stackoverflow.com/questions/1249548/side-by-side-plots-with-ggplot2-in-r