Hi every one, I have a R dataset like this. labels starts ends first task 2004-01-01 2004-03-03 second task 2004-02-02 2004-05-05 third task 2004-03-03 2004-06-06 fourth task 2004-04-04 2004-08-08 fifth task 2004-05-05 2004-09-09 now i want to create gantt chart for this data. can any body help us in code, it will be very helpful for us. Thanks in Advance. -- View this message in context: http://www.nabble.com/creating-gantt-chart-tp25078977p25078977.html Sent from the R help mailing list archive at Nabble.com.
Go to rseek.org and enter: gantt chart On Fri, Aug 21, 2009 at 8:35 AM, rajclinasia<raj at clinasia.com> wrote:> > Hi every one, > I have a R dataset like this. > > labels ? ? ?starts ? ? ? ? ? ? ? ? ? ? ends > first task ? ? ? ? 2004-01-01 ? 2004-03-03 > second task 2004-02-02 ?2004-05-05 > third task ? ? ? ? ?2004-03-03 ?2004-06-06 > fourth task ?2004-04-04 2004-08-08 > fifth task ? ? ? ? 2004-05-05 ? 2004-09-09 > > now i want to create gantt chart for this data. can any body help us in > code, it will be very helpful for us. > > Thanks in Advance. > -- > View this message in context: http://www.nabble.com/creating-gantt-chart-tp25078977p25078977.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >
rajclinasia wrote:> Hi every one, > I have a R dataset like this. > > labels starts ends > first task 2004-01-01 2004-03-03 > second task 2004-02-02 2004-05-05 > third task 2004-03-03 2004-06-06 > fourth task 2004-04-04 2004-08-08 > fifth task 2004-05-05 2004-09-09 > > now i want to create gantt chart for this data. can any body help us in > code, it will be very helpful for us. > > Thanks in Advance. >Hi, RSiteSearch("gantt chart") type "R-help gantt chart" in to google cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul
rajclinasia wrote:> Hi every one, > I have a R dataset like this. > > labels starts ends > first task 2004-01-01 2004-03-03 > second task 2004-02-02 2004-05-05 > third task 2004-03-03 2004-06-06 > fourth task 2004-04-04 2004-08-08 > fifth task 2004-05-05 2004-09-09 > > now i want to create gantt chart for this data. can any body help us in > code, it will be very helpful for us. >Hi raj, From your two messages I assume that you have an Excel spreadsheet that looks something like the above data, and you want to convert this into a list that will produce a Gantt chart using the gantt.chart function. First, your example has alerted me to the fact that if the incoming list is missing the "priorities" component, gantt.chart will lose its lunch, so I have fixed this little problem and future versions will not be so picky. First, add a column like this: priorities 1 2 3 4 5 to the spreadsheet. Then, to generate a data frame (which is a sort of list) from an Excel file, export (Save As...) the spreadsheet as a CSV file with commas as delimiters. Then read that file into R and display: my.gantt.info<-read.csv("my.gantt.csv") gantt.chart(my.gantt.info) Jim