Bug 14391 - Disappearing text when using a long "expression" in ylab
Disappearing text when using a long "expression" in ylab
Status: RESOLVED FIXED
Product: R
Classification: Unclassified
Component: Graphics
R 2.11.1
ix86 (32-bit) Windows 64-bit
: P5 minor
Assigned To: R-core
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-28 20:13 UTC by Tal Galili
Modified: 2010-09-29 00:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tal Galili 2010-09-28 20:13:33 UTC
Example of the bug:

tt <-  expression(paste("test loooooooooooooooooooooooooooooooooooooooooooooo(% of 360" *degree,")"))
plot(1,xlab=tt,ylab=tt,main=tt)

#Now please resize the window to a smaller window to see how the text in ylab disappears 
#(but not the xlab or title.)

#This also seems to affect vertical rotated expressions:
plot(1)
text(1,1,tt,srt=90)
text(1,1,tt,srt=0)
text(1,1,tt,srt=45)
#At least on windows.
#On Linux (so Barry wrote), all the rotated texts seems to disappear.


# I wasn't able to find reference to this when searching, but maybe I failed in looking.

# Here is my session info:

> sessionInfo() 
R version 2.11.1 (2010-05-31) 
i386-pc-mingw32 

locale:
[1] LC_COLLATE=Hebrew_Israel.1255  LC_CTYPE=Hebrew_Israel.1255    LC_MONETARY=Hebrew_Israel.1255 LC_NUMERIC=C                  
[5] LC_TIME=Hebrew_Israel.1255    

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

other attached packages:
 [1] multcomp_1.1-6    coin_1.0-11       modeltools_0.2-16 mvtnorm_0.9-9     survival_2.35-8   reshape_0.8.3     monoProc_1.0-6    stringr_0.3      
 [9] R2PPT_1.0         rcom_2.2-1        rscproxy_1.3-1    rootSolve_1.5     plyr_1.2          zoo_1.6-2         colorspace_1.0-1 

loaded via a namespace (and not attached):
[1] grid_2.11.1    lattice_0.18-8 tools_2.11.1
Comment 1 Paul Murrell 2010-09-29 00:23:05 UTC
It's a bug alright.  Fix in r53057