Hi, people. Executing the following command: hist(rpois(100,5), labels=TRUE) yields a graphic in which some labels are truncated (on an X11 device). The truncated labels are those over the highest bars. The hist function should ideally manage enough room for the labels, automatically. (Specifying ylim solves my problem, but yet, hist could be frienlier.) --please do not edit the information below-- Version: platform = x86_64-unknown-linux-gnu arch = x86_64 os = linux-gnu system = x86_64, linux-gnu status = major = 2 minor = 3.0 year = 2006 month = 04 day = 24 svn rev = 37909 language = R version.string = Version 2.3.0 (2006-04-24) Locale: LC_CTYPE=fr_CA.UTF-8;LC_NUMERIC=C;LC_TIME=fr_CA.UTF-8;LC_COLLATE=fr_CA.UTF-8;LC_MONETARY=fr_CA.UTF-8;LC_MESSAGES=fr_CA.UTF-8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C Search Path: .GlobalEnv, package:methods, package:stats, package:graphics, package:utils, package:datasets, fp.etc, package:grDevices, Autoloads, package:base -- Fran??ois Pinard http://pinard.progiciels-bpi.ca
On 5/15/2006 7:35 PM, pinard at iro.umontreal.ca wrote:> Hi, people. Executing the following command: > > hist(rpois(100,5), labels=TRUE) > > yields a graphic in which some labels are truncated (on an X11 device). > The truncated labels are those over the highest bars. The hist function > should ideally manage enough room for the labels, automatically. > (Specifying ylim solves my problem, but yet, hist could be frienlier.)I don't see this on Windows using windows(), or Linux using X11(). I imagine it's a case that the device isn't reporting the size of fonts properly, and since my X server shows things properly, I would guess it's a problem with your X server, not with R. Duncan Murdoch> > --please do not edit the information below-- > > Version: > platform = x86_64-unknown-linux-gnu > arch = x86_64 > os = linux-gnu > system = x86_64, linux-gnu > status = > major = 2 > minor = 3.0 > year = 2006 > month = 04 > day = 24 > svn rev = 37909 > language = R > version.string = Version 2.3.0 (2006-04-24) > > Locale: > LC_CTYPE=fr_CA.UTF-8;LC_NUMERIC=C;LC_TIME=fr_CA.UTF-8;LC_COLLATE=fr_CA.UTF-8;LC_MONETARY=fr_CA.UTF-8;LC_MESSAGES=fr_CA.UTF-8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C > > Search Path: > .GlobalEnv, package:methods, package:stats, package:graphics, package:utils, package:datasets, fp.etc, package:grDevices, Autoloads, package:base >
[paul murrell]>I can get this (on Windows, but I'm sure elsewhere too) by just >resizing the window. The report is correct in that the hist() does not >ensure that there is room for labels on the plot, but this seems more >like a wish-list item than a bug.Hi, Paul. Thanks for the feedback! Should I confess, at least for the R project, I sometimes miss the subtleties between wish-list items and bugs -- not only for this one, but in general. We surely wish bugs to be addressed: this, I get :-). But I sometimes feel we exaggerate the exegesis of the distinction between wishes and bugs, as this exercise is a bit irritating, without being fruitful. I wonder why the distinction is deemed so important. Merely chatting, of course. Keep happy! -- Fran?ois Pinard http://pinard.progiciels-bpi.ca