Hi, i have a script how i launch lattice to make a densityplot. in the script: jpeg(file="XXX.jpg") densityplot(~f_diametro+m_diametro+n_diametro, plot.points="rug", auto.key=T) dev.off() does'nt work and in R i dont have any output but if i launch by R row by row, runs correctly..... any idea?
FAQ: http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f you need to print() HTH, baptiste 2009/12/16 ch3o at autistici.org <ch3o at autistici.org>:> Hi, > i have a script how i launch lattice to make a densityplot. > in the script: > > jpeg(file="XXX.jpg") > densityplot(~f_diametro+m_diametro+n_diametro, plot.points="rug", > auto.key=T) > dev.off() > > does'nt work and in R i dont have any output > but if i launch by R row by row, runs correctly..... > any idea? > > ______________________________________________ > 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. >
instead of densityplot(...) use print(densityplot(...)) b On Dec 16, 2009, at 3:19 PM, ch3o at autistici.org wrote:> Hi, > i have a script how i launch lattice to make a densityplot. > in the script: > > jpeg(file="XXX.jpg") > densityplot(~f_diametro+m_diametro+n_diametro, plot.points="rug", > auto.key=T) > dev.off() > > does'nt work and in R i dont have any output > but if i launch by R row by row, runs correctly..... > any idea? > > ______________________________________________ > 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.