[R] Gantt chart problem after upgrade to R 2.4.0

apjaworski at mmm.com apjaworski at mmm.com
Fri Nov 17 23:17:46 CET 2006


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: apjaworski at mmm.com
Tel:  (651) 733-6092
Fax:  (651) 736-3122


                                                                           
             "No No"                                                       
             <nono.231 at gmail.c                                             
             om>                                                        To 
             Sent by:                  "John Kane" <jrkrideau at yahoo.ca>    
             r-help-bounces at st                                          cc 
             at.math.ethz.ch           R R-help <r-help at 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 at 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot.pdf
Type: application/pdf
Size: 4127 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20061117/125ef38e/attachment.pdf 


More information about the R-help mailing list