I have been crashing R while using lattice. My system consists of a Mac
Intel, R 2.5.1, lattice 0.15-5, and I plot through the default quartz.
R crashes after plotting several lattice functions. Has anyone else
encountered this problem and does anyone know the cause, or a solution?
Is this a lattice:mac, lattice:quartz, Lattice:me issue?
example...
This crashes my system after plotting.
library(lattice)
haul<-as.integer(c(rep(1:12, 4)))
species<-c(rep("species 1", 12),rep("species 2", 12),rep("species 3",
12),rep("species 4", 12))
count<-c(895,540,1020,470,428,620, 760, 537, 845, 1050, 387,
497, 1520, 1610, 1900, 1350, 980, 1710, 1930, 1960, 1840, 2410,
1520, 1685, 43300, 32800, 28800, 34600, 27800, 32800,28100, 18900,
31400, 39500, 29000, 22300, 11000, 8600, 8260, 9830, 7600, 9650,
8900, 6060, 10200, 15500, 9250, 7900)
qqmath(~count|species,
distribution=qnorm,
prepanel=prepanel.qqmathline,
panel = function(x,...) {
panel.grid()
panel.qqmathline(x, ...)
panel.qqmath(x, ...)
},
aspect=1,
layout=c(2,2),# where c=# of columns, R=Number of rows
main=list ("QQnorm plot for
.", cex=0.8),
sub = list("",cex=.8),
xlab = "Unit Normal Quantile",
ylab=list ("variable in x units", cex=.8))
Thanks,
Jon
Jon Loehrke
Fisheries Graduate Research Assistant
School for Marine Science and Technology
UMASS-Dartmouth
838 S. Rodney French Blvd.
New Bedford, MA 02744
Phone: 508-910-6393
Fax: 508-910-6396
crashing R through lattice
2 messages · Jon Loehrke, Deepayan Sarkar
On 9/27/07, Jon Loehrke <jloehrke at umassd.edu> wrote:
I have been crashing R while using lattice. My system consists of a Mac Intel, R 2.5.1, lattice 0.15-5, and I plot through the default quartz. R crashes after plotting several lattice functions. Has anyone else encountered this problem and does anyone know the cause, or a solution? Is this a lattice:mac, lattice:quartz, Lattice:me issue?
Your example doesn't crash for me (linux/x11), so not sure. Does it crash without the weird characters in 'main'? Nothing else looks very promising as a potential cause. -Deepayan
example...
This crashes my system after plotting.
library(lattice)
haul<-as.integer(c(rep(1:12, 4)))
species<-c(rep("species 1", 12),rep("species 2", 12),rep("species 3",
12),rep("species 4", 12))
count<-c(895,540,1020,470,428,620, 760, 537, 845, 1050, 387,
497, 1520, 1610, 1900, 1350, 980, 1710, 1930, 1960, 1840, 2410,
1520, 1685, 43300, 32800, 28800, 34600, 27800, 32800,28100, 18900,
31400, 39500, 29000, 22300, 11000, 8600, 8260, 9830, 7600, 9650,
8900, 6060, 10200, 15500, 9250, 7900)
qqmath(~count|species,
distribution=qnorm,
prepanel=prepanel.qqmathline,
panel = function(x,...) {
panel.grid()
panel.qqmathline(x, ...)
panel.qqmath(x, ...)
},
aspect=1,
layout=c(2,2),# where c=# of columns, R=Number of rows
main=list ("QQnorm plot for ?.", cex=0.8),
sub = list("",cex=.8),
xlab = "Unit Normal Quantile",
ylab=list ("variable in x units", cex=.8))
Thanks,
Jon
Jon Loehrke
Fisheries Graduate Research Assistant
School for Marine Science and Technology
UMASS-Dartmouth
838 S. Rodney French Blvd.
New Bedford, MA 02744
Phone: 508-910-6393
Fax: 508-910-6396
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.