--- [EMAIL PROTECTED] wrote: > This is interesting. I am on Win2000 running R > version 2.4.0 Patched > (2006-11-15 r39915) and plotrix 2.1.5. I get the > plot that scaled a little > differently that the 2.3.1 example but the dates > look fine.
My fault there. I simply copied the metafile and sized it in a WP before exporting to PDF. > I ran the original code posted by John cane with no changes > (copy and paste). I used > the windows device and did "Save As..." to save the > PDF file. I agree. It seems to work perfectly with R-2.4.0 Patched. I had not realized that there was a Patch version out already but as soon, as I upgraded, the gantt looked fine. However one serous complaint : Kane not cane!!!! Thanks a lot. This saves a lot of time and trouble. > Here is the code: > > require(plotrix) > Ymd.format <- "%Y/%m/%d" > Ymd <- function(x){ as.POSIXct(strptime(x, > format=Ymd.format))} > gantt.info <- list( > labels=c("Dickens", "Doyle", "Kipling", > "Poe"), > starts=Ymd(c("1824/01/01", "1850/01/01", > "1865/01/01", "1815/11/01")), > ends=Ymd(c("1901/01/01", "1922/01/01", > "1935/01/01", "1867/01/01")), > priorities =c(1,2,2,4)) > gantt.chart(gantt.info,main="Writers", > xlim=as.POSIXct(c("1810/01/01","1940/01/01"))) > > Here is the result: > > (See attached file: plot.pdf) > > Cheers, > > Andy > > __________________________________ > Andy Jaworski > 518-1-01 > Process Laboratory > 3M Corporate Research Laboratory > ----- > E-mail: [EMAIL PROTECTED] > Tel: (651) 733-6092 > Fax: (651) 736-3122 ______________________________________________ R-help@stat.math.ethz.ch 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.