R crashes withf facet_wrap

12 views
Skip to first unread message

erich studerus

unread,
Feb 17, 2009, 5:02:19 AM2/17/09
to ggplot2
Hi

Whenever I specifiy ncol=1 in the facet_wrap function, R crashes. I
experienced the problem on two different computers. Try this example.
library(ggplot2)
p <- qplot(price, data = diamonds, geom = "histogram", binwidth =
1000)
p + facet_wrap(~ color,ncol=1)

I hope Hadley can solve this issue in the next release.

Best regards,
Erich

baptiste auguie

unread,
Feb 17, 2009, 5:39:07 AM2/17/09
to ggplot2
Same here, the log file says,

17/02/2009 10:35:08 com.apple.launchd[102]
([0x0-0x2f02f].org.R-project.R[237]) Exited abnormally: Floating point
exception

sessionInfo()
R version 2.8.0 (2008-10-20)
i386-apple-darwin8.11.1

locale:
en_GB.UTF-8/en_GB.UTF-8/C/C/en_GB.UTF-8/en_GB.UTF-8

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

other attached packages:
[1] ggplot2_0.8.1 proto_0.3-8 latticeExtra_0.5-5
lattice_0.17-15 spectra_1.0 reshape_0.8.2 plyr_0.1.3
baptMisc_1.0
[9] constants_1.0 fortunes_1.3-5 RColorBrewer_1.0-2
--

_____________________________

Baptiste Auguié

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag
______________________________

hadley wickham

unread,
Feb 17, 2009, 8:49:27 AM2/17/09
to baptiste auguie, Erich Studerus, ggplot2
Hi guys,

That's a known bug (in R!) which is fixed in R 2.9 and worked around
in the next version of ggplot2. I've just sent the book away for copy
editing, so I'm hoping I'll be able to release a new version of the
package very soon.

Regards,

Hadley
--
http://had.co.nz/
Reply all
Reply to author
Forward
0 new messages