I forgot to mention: if you want to use the patch without installing a
new version of R, it's available by sourcing the file
https://svn.r-project.org/R/branches/R-2-3-patches/src/library/graphics/R/legend.R
It was just a one character change:
Index: legend.R
==
Rob Steele wrote:
> Legend titles work in linear plots:
>
> curve(1/x, xlim = c(0, 1))
> legend(x = 'topright', inset = 0.04,
> legend = '1/x', lty = 1,
> title = 'Legend Title')
>
> But when you change to a log plot on either dimension things get screwy:
>
> curve(1/x, xlim = c(
Legend titles work in linear plots:
curve(1/x, xlim = c(0, 1))
legend(x = 'topright', inset = 0.04,
legend = '1/x', lty = 1,
title = 'Legend Title')
But when you change to a log plot on either dimension things get screwy:
curve(1/x, xlim = c(0, 1), log = 'y')
legend(x = 'topright