On Mon, 24 Aug 2009 05:22:17 -0700 (PDT) rajclinasia <r...@clinasia.com> wrote:
R> my.gantt.info<-read.csv("C:/Documents and R> Settings/balakrishna/Desktop/one.csv"). R> R> and for create gantt chart i used below code. R> R> gantt.chart("my.gantt.info"). This again is why others have pointed you first to have a look at the basics of R which can be read at: http://cran.r-project.org/manuals.html or more extensively in: http://cran.r-project.org/other-docs.html You start to program without knowing the very basics of R. Which is in this case the data structures. my.gantt.info is a data frame. But with the quotation marks you don't even give this as an object to gantt.chart because with the quotation mark you have created a single variable with a single value which is the characters between the quotation marks that have nothing to do with the data - hence the atomic stuff error message... If you would have taken the real data you need the objects name which is: gantt.chart(my.gantt.info) but this would not work either since as I have already pointed out in an earlier mail lase week: you need a list but not a data.frame. So please also consider the documentation which you can do with ?gantt.chart which directly points you towards this. So what you need is a list. What that is you can see either in the example of example(gantt.chart) what is a list? thats basics. Its an object type (there is data.frame, matrix, list and so on) ?list ?as.list Please learn the basics before asking such questions because you save a lot of time for yourself and we do as well because we would not need to answer such questions. Stefan ______________________________________________ R-help@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.