[R] Adding axes label to image

Jim Lemon jim at bitwrit.com.au
Fri Feb 4 12:47:02 CET 2011


On 02/04/2011 09:14 PM, ogbos okike wrote:
> Dear all,
> Using the code I got from the link (
> http://www.phaget4.org/R/image_matrix.html), I obtained a nice plot that
> suits me. However, adding axes labels proved difficult for me . I have
> succeeded in adding a few things to the plot function so as to get what a
> better plot. Other things work but ylab="days" did not reflect.
> It will be great if somebody can advice on how to add axes labels to the
> plot.

Hi Ogbos,
Try this after the plot has been displayed:

title(ylab="days",line=1)

Jim



More information about the R-help mailing list