[Rd] Bug in placement of legend with title when xlim is decreasing (PR#12019)

From: <candrews_at_buffalo.edu>
Date: Thu, 07 Aug 2008 11:33:36 +0200 (CEST)


Full_Name: Chris Andrews
Version: 2.7.1
OS: Windows
Submission from: (NULL) (74.92.48.53)

The following code shows that the legend is misplaced when a title is included AND xlim specifies a decreasing x axis.


matplot(1:5, matrix(rnorm(5*3), nrow=5), type="l", col=1:3, lty=1, lwd=3,

xlim=c(5,1))
legend("bottomleft", col=1:3, lty=1, legend=paste("line", letters[1:3]))
legend("topleft", col=1:3, lty=1, legend=paste("line", letters[1:3]),
title="Hello")

legend("bottomright", col=1:3, lty=1, legend=paste("line", letters[1:3])) legend("topright", col=1:3, lty=1, legend=paste("line", letters[1:3]), title="Hello")


R version 2.7.1 (2008-06-23)
i386-pc-mingw32

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 07 Aug 2008 - 12:39:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 07 Aug 2008 - 13:36:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive