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.  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.

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


                                                                           
             "No No"                                                       
             <[EMAIL PROTECTED]                                             
             om>                                                        To 
             Sent by:                  "John Kane" <[EMAIL PROTECTED]>    
             [EMAIL PROTECTED]                                          cc 
             at.math.ethz.ch           R R-help <r-help@stat.math.ethz.ch> 
                                                                   Subject 
                                       Re: [R] Gantt chart problem after   
             11/17/2006 03:35          upgrade to R 2.4.0                  
             PM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




I am on ubuntu linux with R 2.4.0 compiled and I get the same picture
as with yours with R 2.4.0.

______________________________________________
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.

Attachment: plot.pdf
Description: Adobe PDF document

______________________________________________
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.

Reply via email to