[Rd] Truncated labels in hist (PR#8864)

Duncan Murdoch murdoch at stats.uwo.ca
Tue May 16 02:41:09 CEST 2006


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
>



More information about the R-devel mailing list