Skip to content

y label for X11 graphics

3 messages · Terry Therneau, Paul Murrell

#
In the following plot, the y label is missing if it is too long.

x11(type="Xlib")
plot(1:5, 1:5, ylab="Do, a deer, a female deer")   # missing label
plot(1:5, 1:5, ylab="Do")                          # label is present

All is well for x11(type="cairo")

This is true both under R devel 2017-09-01 on xubuntu (my desktop), and 3.4.1 on Centos 
6.9 (department servers).


A minor question is why my locally compiled version defaults to Xlib rather than cairo, 
since both work as explicit arguments to the x11() command.

Terry T.
1 day later
#
Sorry, can't reproduce on ...

 > sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.0
LAPACK: /usr/lib/lapack/liblapack.so.3.0

locale:
  [1] LC_CTYPE=en_NZ.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_NZ.UTF-8        LC_COLLATE=en_NZ.UTF-8
  [5] LC_MONETARY=en_NZ.UTF-8    LC_MESSAGES=en_NZ.UTF-8
  [7] LC_PAPER=en_NZ.UTF-8       LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C

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

loaded via a namespace (and not attached):
[1] compiler_3.4.1

... or on ...

 > sessionInfo()
R Under development (unstable) (2017-09-12 r73246)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS: /home/pmur002/R/r-devel/BUILD/lib/libRblas.so
LAPACK: /home/pmur002/R/r-devel/BUILD/lib/libRlapack.so

locale:
  [1] LC_CTYPE=en_NZ.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_NZ.UTF-8        LC_COLLATE=en_NZ.UTF-8
  [5] LC_MONETARY=en_NZ.UTF-8    LC_MESSAGES=en_NZ.UTF-8
  [7] LC_PAPER=en_NZ.UTF-8       LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C

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

loaded via a namespace (and not attached):
[1] compiler_3.5.0

Paul
On 14/09/17 04:03, Therneau, Terry M., Ph.D. wrote:

  
    
12 days later
#
Family matters have kept me away, I'm finally coming back to this thread.

In summary, this is an issue with a particular workstation, not with R.  Graphics with 
X11(type="Xlib") have a y label problem when displayed on this particular box, whether 
using R locally or from a server via ssh -X.  The same server's output is fine on another 
machine in the department.

I remain mildly curious as to why, but not enough to dig in since X11(type='cairo') 
displays without issue.  I first noticed this in R-devel which prompted my "bug report". 
Sorry for the noise and thanks for the responses which pointed me in the right direction.

Terry T.