Skip to content
Prev 41807 / 63421 Next

strange behavior from cex="*"

Hi Ben,

Just a few things to add.

First, the same phenomenon occurs when you use any character string as 
the value of cex; there is nothing special about "*".

Second, you cannot get this phenomenon by trying to do something like
     par(cex="*")
because the par function actually checks if the value is a nonnegative 
number.

Finally, producing the different graphs is clearly occuring inside the 
"plot.xy" function, although I have not yet caused R2.14 to hang. This 
at least suggests a fix: make sure that plot.xy checks the type of the 
cex argument in the same way that par does.

     Kevin

#######################
  xy <- xy.coords(1:10, 1:10)
  plot(xy)
  for(i in seq(100)) plot.xy(xy, "p", cex="*", col=i)
#######################

 > sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: x86_64-pc-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages:
[1] png_0.1-3

loaded via a namespace (and not attached):
[1] tools_2.14.0
On 11/16/2011 3:38 PM, Ben Bolker wrote: