Re: [R] Bar plot

2010-02-09 Thread Sunita Patil
Hello Peter

Sorry I forgot to paste the error for tittle it was as follows

*Error in title(main = "Year Vs StudentsPassed") :   plot.new has not been
called yet*

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita
Sent from Pune, MH, India

On Tue, Feb 9, 2010 at 11:22 PM, Peter Ehlers  wrote:

> Here is a simple 3-step solution:
>
> 1. type ?barplot
> 2. find the section labelled 'Arguments'
> 3. carefully read what each argument means/does
>
> Voila, problem(s) solved.
>
> (It was good to include some data, but not so good
> to say that title(...) is giving "an error". No need
> to be secretive about the error; just say what it was.)
>
>  -Peter Ehlers
>
> Sunitap22 wrote:
>
>> Hello
>> (this might be a very simple question) My data is as follows (table name
>> is student)
>>   YearStudentsPassed
>> 1  2000300
>> 2  2001360
>> 3  2002450
>> 4  2003450
>> 5  2004270
>> 6  2005280
>> 7  2006400
>> 8  2007270
>>
>> I want to plot a barplot so for this
>> If I use barplot(students) it says "Error in barplot.default(students) :
>> 'height' must be a vector or a matrix"
>>
>> so I used the following command
>> barplot(StudentsPassed)
>>
>> But this doesnt give me the names for Xaxis, how can I get the names for
>> Xaxis, also how can I get labels for X and Y axis, and tittle, I tried
>> title(main = "Year Vs Number of Publications")
>> to get the title but its giving me an error
>>
>> Thanks in advance
>> Sunita
>> I want to
>>
>
> --
> Peter Ehlers
> University of Calgary
>
>

[[alternative HTML version deleted]]

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


Re: [R] Need help for graphical representation

2009-11-21 Thread Sunita Patil
Hello

Thanks I will surely look into it

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Sat, Nov 21, 2009 at 9:22 PM, Juliet Hannah wrote:

> Check out examples in the lattice package and ggplot2 package.
> For example let's say you plot points and confidence intervals. These
> packages
> will then allow you to plot these values by group and by combinations of
> groups.
> Look up conditioning and faceting in these packages.
>
> On Wed, Nov 18, 2009 at 7:50 AM, Sunita22  wrote:
> >
> > Hello
> >
> > I am unable to find a graph for my data, My data contains following
> columns:
> >
> > 1st column: Posts (GM, Secretary, AM, Office Boy)
> > 2nd Column: Dept (Finance, HR, ...)
> > 3rd column: Tasks (Open the door, Fix an appointment, Fill the register,
> > etc.) depending on the post
> > 4th column: Average Time required to do the task
> >
> > So the sample data would look like
> > PostsDeptTask   Average time
> > Office Boy  HR   Open the door  00:00:09
> > Secretary   FinanceFix an appointment00.00.30
> > .  ..
> >
> > I am trying to represent this data in Graphical format, I tried graphs
> like
> > Mosaic plot, etc. But it does not represent the data correctly. My aim is
> to
> > check the "amount of time and its variability for groups of tasks"
> >
> > Can someone suggest me few graphs for this kind of data?
> >
> > Thank you in advance
> > Regards
> > Sunita
> > --
> > View this message in context:
> http://old.nabble.com/Need-help-for-graphical-representation-tp26407207p26407207.html
> > Sent from the R help mailing list archive at Nabble.com.
> >
> > __
> > 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.
> >
>

[[alternative HTML version deleted]]

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


Re: [R] Presentation of data in Graphical format

2009-11-19 Thread Sunita Patil
gt; levels and only few time values in each boxplot would not look well.
> Maybe
> > > you could check also ?xtabs or ?table and/or R graph gallery
> > > http://addictedtor.free.fr/graphiques/ if you find suitable graph.
> > >
> > > Regards
> > > Petr
> > >
> > >
> > >
> > > >
> > > > Regards
> > > >
> > > > Our Thoughts have the Power to Change our Destiny.
> > > > Sunita
> > > >
> > > >
> > > > On Wed, Nov 18, 2009 at 7:20 PM, Tal Galili 
> > > wrote:
> > > >
> > > > > I would start with
> > > > > ?boxplot
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > >
> > > > > My contact information:
> > > > > Tal Galili
> > > > > E-mail: tal.gal...@gmail.com
> > > > > Phone number: 972-52-7275845
> > > > > FaceBook: Tal Galili
> > > > > My Blogs:
> > > > > http://www.talgalili.com (Web and general, Hebrew)
> > > > > http://www.biostatistics.co.il (Statistics, Hebrew)
> > > > > http://www.r-statistics.com/ (Statistics,R, English)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Wed, Nov 18, 2009 at 2:47 PM, Sunita Patil
> 
> > > wrote:
> > > > >
> > > > >> Thanx
> > > > >>
> > > > >> but I am not able to find a graph that wud suit my data
> > > > >>
> > > > >> Regards
> > > > >>
> > > > >> Our Thoughts have the Power to Change our Destiny.
> > > > >> Sunita
> > > > >>
> > > > >>
> > > > >> On Sun, Nov 15, 2009 at 8:54 PM, milton ruser
>  > > > >> >wrote:
> > > > >>
> > > > >> > Google "R graph grallery"
> > > > >> > Google "R ggplot2"
> > > > >> > Google "R lattice"
> > > > >> >
> > > > >> > and good luck
> > > > >> >
> > > > >> > milton
> > > > >> > On Sun, Nov 15, 2009 at 7:48 AM, Sunita22 
> > > wrote:
> > > > >> >
> > > > >> >>
> > > > >> >> Hello
> > > > >> >>
> > > > >> >> My data contains following columns:
> > > > >> >>
> > > > >> >> 1st column: Posts (GM, Secretary, AM, Office Boy)
> > > > >> >> 2nd Column: Dept (Finance, HR, ...)
> > > > >> >> 3rd column: Tasks (Open the door, Fix an appointment, Fill the
> > > > >> register,
> > > > >> >> etc.) depending on the post
> > > > >> >> 4th column: Average Time required to do the task
> > > > >> >>
> > > > >> >> So the sample data would look like
> > > > >> >> PostsDeptTask Average
> > > time
> > > > >> >> Office Boy  HR   Open the door  00:00:09
> > > > >> >> Secretary   FinanceFix an appointment00.00.30
> > > > >> >> .  . .
> > > > >> >>
> > > > >> >> I am trying to represent this data in Graphical format, I
> tried
> > > graphs
> > > > >> >> like
> > > > >> >> Mosaic plot, etc. But it does not represent the data
> correctly. My
> > > aim
> > > > >> is
> > > > >> >> to
> > > > >> >> check the "amount of time and its variability for groups of
> tasks"
> > > > >> >>
> > > > >> >> Thank you in advance
> > > > >> >> Regards
> > > > >> >> Sunita
> > > > >> >>
> > > > >> >> --
> > > > >> >> View this message in context:
> > > > >> >>
> > > > >> http://old.nabble.com/Presentation-of-data-in-Graphical-format-
> > > > tp26358857p26358857.html
> > > > >> >> Sent from the R help mailing list archive at Nabble.com.
> > > > >> >>
> > > > >> >> __
> > > > >> >> 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<
> > > > >> http://www.r-project.org/posting-guide.html>
> > > > >>
> > > > >> >> and provide commented, minimal, self-contained, reproducible
> code.
> > > > >> >>
> > > > >> >
> > > > >> >
> > > > >>
> > > > >>[[alternative HTML version deleted]]
> > > > >>
> > > > >>
> > > > >> __
> > > > >> 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.
> > > > >>
> > > > >
> > > > >
> > > >
> > > >[[alternative HTML version deleted]]
> > > >
> > > > __
> > > > 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.
> > >
> > >
> >
> >[[alternative HTML version deleted]]
> >
> > __
> > 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.
>
>

[[alternative HTML version deleted]]

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


Re: [R] Presentation of data in Graphical format

2009-11-19 Thread Sunita Patil
Hello Sir

Thanx even I will try to work out on your suggestions, will keep you updated
on the progress. Thanx a lot

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Thu, Nov 19, 2009 at 3:50 PM, Jim Lemon  wrote:

> On 11/19/2009 03:13 AM, Sunita Patil wrote:
>
>> Hello Sir
>>
>> I have got 150 observations, got 10 posts/ 6 departments/ tasks vary from
>> 5
>> to 10,
>>
>> A few of the variables are crossed specially in case of Office boy, where
>> the tasks are like open the door, put on the lights,
>>
>> Yes time variable I have used Chron package, so that it works well
>>
>> My aim for this study is to check the "amount of time and its variability
>> for groups of tasks"
>>
>> Its my project work so need to work this out myself if it doesnt work then
>> I
>> will have to consult a statistician
>>
>> Thanks for guiding me to put up the question in more clearer way, I will
>> sure take care next time
>>
>>
> Hi Sunita,
> You seem to have two aims, one to display the tasks, and the other to
> summarize the times. I have been looking at the plot.dendrite function and
> it might perform the first task with a bit of rewriting (which it needs
> anyway). The second task might be handled by the hierobarp function. I'll
> try to work out whether these will do the job in the next day or two.
>
> Jim
>
>

[[alternative HTML version deleted]]

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


Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
Hello Sir

I have got 150 observations, got 10 posts/ 6 departments/ tasks vary from 5
to 10,

A few of the variables are crossed specially in case of Office boy, where
the tasks are like open the door, put on the lights,

Yes time variable I have used Chron package, so that it works well

My aim for this study is to check the "amount of time and its variability
for groups of tasks"

Its my project work so need to work this out myself if it doesnt work then I
will have to consult a statistician

Thanks for guiding me to put up the question in more clearer way, I will
sure take care next time

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Wed, Nov 18, 2009 at 9:29 PM, hadley wickham  wrote:

> That is not enough information for anyone to suggest a useful plot.
> For a start:
>
>  * How many observations do you have?
>  * How many difference posts/departments/tasks?
>  * Are the variables nested or crossed?
>  * Have you successfully parsed the time representation into something
> R can work with?  Is the representation inconsistent as in your
> example?
>  * What is the purpose of the study?  What do you want to find out?
>
> Maybe you should meet with a local statistical consultant to discuss
> these issues in person. WARNING: you might have to pay - good advice
> is not always/seldom/ever free.
>
> Hadley
>
> On Wed, Nov 18, 2009 at 9:53 AM, Sunita Patil  wrote:
> > Hello Sir
> >
> > I had given a sample of my data, As I cannot disclose whole of my data
> this
> > is just a sample given
> >
> > 1st column: Posts (GM, Secretary, AM, Office Boy)
> > 2nd Column: Dept (Finance, HR, ...)
> > 3rd column: Tasks (Open the door, Fix an appointment, Fill the register,
> > etc.) depending on the post
> > 4th column: Average Time required to do the task
> >
> > So the sample data would look like
> > PostsDeptTask Average time
> > Office Boy  HR   Open the door  00:00:09
> > Office Boy  HR   Switch on the lights  00:00:10
> > Secretary   FinanceFix an appointment   00.00.30
> >     .
> .
> >
> >     .
> .
> >     .
> .
> >
> > in my data the 1st column is the main category say suppose "Secretary"
> the
> > second column is the sub category "HR Dept" the 3rd column is the list of
> > duties performed by the Secretary from HR dept and 4th column is time
> > required to perform the duty
> >
> > so there are many such posts and dept with varied duties and times resp
> >
> >
> > Regards
> >
> > Our Thoughts have the Power to Change our Destiny.
> > Sunita
> >
> >
> > On Wed, Nov 18, 2009 at 9:15 PM, hadley wickham 
> wrote:
> >>
> >> > Yes I tried all the basic ones like box plot, pie chart, etc but the
> >> > data
> >> > representation isnt that clear.
> >>
> >> Given that you have neither provided your data, nor explained what you
> >> are trying to uncover from it, what sort of advice do you expect to
> >> get?
> >>
> >> Hadley
> >>
> >> --
> >> http://had.co.nz/
> >
> >
>
>
>
> --
> http://had.co.nz/
>

[[alternative HTML version deleted]]

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


Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
Hello Sir

I had given a sample of my data, As I cannot disclose whole of my data this
is just a sample given

1st column: Posts (GM, Secretary, AM, Office Boy)
2nd Column: Dept (Finance, HR, ...)
3rd column: Tasks (Open the door, Fix an appointment, Fill the register,
etc.) depending on the post
4th column: Average Time required to do the task

So the sample data would look like
*PostsDeptTask Average time*
Office Boy  HR   Open the door  00:00:09
Office Boy  HR   Switch on the lights  00:00:10
Secretary   FinanceFix an appointment   00.00.30
    . .

    . .
    . .

in my data the 1st column is the main category say suppose "Secretary" the
second column is the sub category "HR Dept" the 3rd column is the list of
duties performed by the Secretary from HR dept and 4th column is time
required to perform the duty

so there are many such posts and dept with varied duties and times resp


Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Wed, Nov 18, 2009 at 9:15 PM, hadley wickham  wrote:

> > Yes I tried all the basic ones like box plot, pie chart, etc but the data
> > representation isnt that clear.
>
> Given that you have neither provided your data, nor explained what you
> are trying to uncover from it, what sort of advice do you expect to
> get?
>
> Hadley
>
> --
> http://had.co.nz/
>

[[alternative HTML version deleted]]

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


Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
yes in my data the 1st column is the main category say suppose "Secretary"
the second column is the sub category "HR Dept" the 3rd column is the list
of duties performed by the Secretary from HR dept and 4th column is time
required to perform the duty

so there are many such posts and dept with varied duties and times resp.

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Wed, Nov 18, 2009 at 8:42 PM, Petr PIKAL  wrote:

> Hi
>
> r-help-boun...@r-project.org napsal dne 18.11.2009 16:01:27:
>
> > Yes I tried all the basic ones like box plot, pie chart, etc but the
> data
> > representation isnt that clear.
> >
>
> I agree with Tal. But it partly depends on your data. If you have many
> levels and only few time values in each boxplot would not look well. Maybe
> you could check also ?xtabs or ?table and/or R graph gallery
> http://addictedtor.free.fr/graphiques/ if you find suitable graph.
>
> Regards
> Petr
>
>
>
> >
> > Regards
> >
> > Our Thoughts have the Power to Change our Destiny.
> > Sunita
> >
> >
> > On Wed, Nov 18, 2009 at 7:20 PM, Tal Galili 
> wrote:
> >
> > > I would start with
> > > ?boxplot
> > >
> > >
> > > --
> > >
> > >
> > > My contact information:
> > > Tal Galili
> > > E-mail: tal.gal...@gmail.com
> > > Phone number: 972-52-7275845
> > > FaceBook: Tal Galili
> > > My Blogs:
> > > http://www.talgalili.com (Web and general, Hebrew)
> > > http://www.biostatistics.co.il (Statistics, Hebrew)
> > > http://www.r-statistics.com/ (Statistics,R, English)
> > >
> > >
> > >
> > >
> > > On Wed, Nov 18, 2009 at 2:47 PM, Sunita Patil 
> wrote:
> > >
> > >> Thanx
> > >>
> > >> but I am not able to find a graph that wud suit my data
> > >>
> > >> Regards
> > >>
> > >> Our Thoughts have the Power to Change our Destiny.
> > >> Sunita
> > >>
> > >>
> > >> On Sun, Nov 15, 2009 at 8:54 PM, milton ruser  > >> >wrote:
> > >>
> > >> > Google "R graph grallery"
> > >> > Google "R ggplot2"
> > >> > Google "R lattice"
> > >> >
> > >> > and good luck
> > >> >
> > >> > milton
> > >> > On Sun, Nov 15, 2009 at 7:48 AM, Sunita22 
> wrote:
> > >> >
> > >> >>
> > >> >> Hello
> > >> >>
> > >> >> My data contains following columns:
> > >> >>
> > >> >> 1st column: Posts (GM, Secretary, AM, Office Boy)
> > >> >> 2nd Column: Dept (Finance, HR, ...)
> > >> >> 3rd column: Tasks (Open the door, Fix an appointment, Fill the
> > >> register,
> > >> >> etc.) depending on the post
> > >> >> 4th column: Average Time required to do the task
> > >> >>
> > >> >> So the sample data would look like
> > >> >> PostsDeptTask   Average
> time
> > >> >> Office Boy  HR   Open the door  00:00:09
> > >> >> Secretary   FinanceFix an appointment00.00.30
> > >> >> .  . .
> > >> >>
> > >> >> I am trying to represent this data in Graphical format, I tried
> graphs
> > >> >> like
> > >> >> Mosaic plot, etc. But it does not represent the data correctly. My
> aim
> > >> is
> > >> >> to
> > >> >> check the "amount of time and its variability for groups of tasks"
> > >> >>
> > >> >> Thank you in advance
> > >> >> Regards
> > >> >> Sunita
> > >> >>
> > >> >> --
> > >> >> View this message in context:
> > >> >>
> > >> http://old.nabble.com/Presentation-of-data-in-Graphical-format-
> > tp26358857p26358857.html
> > >> >> Sent from the R help mailing list archive at Nabble.com.
> > >> >>
> > >> >> __
> > >> >> 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<
> > >> http://www.r-project.org/posting-guide.html>
> > >>
> > >> >> and provide commented, minimal, self-contained, reproducible code.
> > >> >>
> > >> >
> > >> >
> > >>
> > >>[[alternative HTML version deleted]]
> > >>
> > >>
> > >> __
> > >> 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.
> > >>
> > >
> > >
> >
> >[[alternative HTML version deleted]]
> >
> > __
> > 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.
>
>

[[alternative HTML version deleted]]

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


Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
I have been using R just very recently, I have gone through this
http://addictedtor.free.fr/graphiques/
a few weeks back but I am not able to understand as to how to choose the
graph amongst them? Can anyone guide me regarding this?

Thanks in advance
Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Wed, Nov 18, 2009 at 8:42 PM, Petr PIKAL  wrote:

> Hi
>
> r-help-boun...@r-project.org napsal dne 18.11.2009 16:01:27:
>
> > Yes I tried all the basic ones like box plot, pie chart, etc but the
> data
> > representation isnt that clear.
> >
>
> I agree with Tal. But it partly depends on your data. If you have many
> levels and only few time values in each boxplot would not look well. Maybe
> you could check also ?xtabs or ?table and/or R graph gallery
> http://addictedtor.free.fr/graphiques/ if you find suitable graph.
>
> Regards
> Petr
>
>
>
> >
> > Regards
> >
> > Our Thoughts have the Power to Change our Destiny.
> > Sunita
> >
> >
> > On Wed, Nov 18, 2009 at 7:20 PM, Tal Galili 
> wrote:
> >
> > > I would start with
> > > ?boxplot
> > >
> > >
> > > --
> > >
> > >
> > > My contact information:
> > > Tal Galili
> > > E-mail: tal.gal...@gmail.com
> > > Phone number: 972-52-7275845
> > > FaceBook: Tal Galili
> > > My Blogs:
> > > http://www.talgalili.com (Web and general, Hebrew)
> > > http://www.biostatistics.co.il (Statistics, Hebrew)
> > > http://www.r-statistics.com/ (Statistics,R, English)
> > >
> > >
> > >
> > >
> > > On Wed, Nov 18, 2009 at 2:47 PM, Sunita Patil 
> wrote:
> > >
> > >> Thanx
> > >>
> > >> but I am not able to find a graph that wud suit my data
> > >>
> > >> Regards
> > >>
> > >> Our Thoughts have the Power to Change our Destiny.
> > >> Sunita
> > >>
> > >>
> > >> On Sun, Nov 15, 2009 at 8:54 PM, milton ruser  > >> >wrote:
> > >>
> > >> > Google "R graph grallery"
> > >> > Google "R ggplot2"
> > >> > Google "R lattice"
> > >> >
> > >> > and good luck
> > >> >
> > >> > milton
> > >> > On Sun, Nov 15, 2009 at 7:48 AM, Sunita22 
> wrote:
> > >> >
> > >> >>
> > >> >> Hello
> > >> >>
> > >> >> My data contains following columns:
> > >> >>
> > >> >> 1st column: Posts (GM, Secretary, AM, Office Boy)
> > >> >> 2nd Column: Dept (Finance, HR, ...)
> > >> >> 3rd column: Tasks (Open the door, Fix an appointment, Fill the
> > >> register,
> > >> >> etc.) depending on the post
> > >> >> 4th column: Average Time required to do the task
> > >> >>
> > >> >> So the sample data would look like
> > >> >> PostsDeptTask   Average
> time
> > >> >> Office Boy  HR   Open the door  00:00:09
> > >> >> Secretary   FinanceFix an appointment00.00.30
> > >> >> .  . .
> > >> >>
> > >> >> I am trying to represent this data in Graphical format, I tried
> graphs
> > >> >> like
> > >> >> Mosaic plot, etc. But it does not represent the data correctly. My
> aim
> > >> is
> > >> >> to
> > >> >> check the "amount of time and its variability for groups of tasks"
> > >> >>
> > >> >> Thank you in advance
> > >> >> Regards
> > >> >> Sunita
> > >> >>
> > >> >> --
> > >> >> View this message in context:
> > >> >>
> > >> http://old.nabble.com/Presentation-of-data-in-Graphical-format-
> > tp26358857p26358857.html
> > >> >> Sent from the R help mailing list archive at Nabble.com.
> > >> >>
> > >> >> __
> > >> >> 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<
> > >> http://www.r-project.org/posting-guide.html>
> > >>
> > >> >> and provide commented, minimal, self-contained, reproducible code.
> > >> >>
> > >> >
> > >> >
> > >>
> > >>[[alternative HTML version deleted]]
> > >>
> > >>
> > >> __
> > >> 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.
> > >>
> > >
> > >
> >
> >[[alternative HTML version deleted]]
> >
> > __
> > 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.
>
>

[[alternative HTML version deleted]]

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


Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
Yes I tried all the basic ones like box plot, pie chart, etc but the data
representation isnt that clear.


Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Wed, Nov 18, 2009 at 7:20 PM, Tal Galili  wrote:

> I would start with
> ?boxplot
>
>
> --
>
>
> My contact information:
> Tal Galili
> E-mail: tal.gal...@gmail.com
> Phone number: 972-52-7275845
> FaceBook: Tal Galili
> My Blogs:
> http://www.talgalili.com (Web and general, Hebrew)
> http://www.biostatistics.co.il (Statistics, Hebrew)
> http://www.r-statistics.com/ (Statistics,R, English)
>
>
>
>
> On Wed, Nov 18, 2009 at 2:47 PM, Sunita Patil  wrote:
>
>> Thanx
>>
>> but I am not able to find a graph that wud suit my data
>>
>> Regards
>>
>> Our Thoughts have the Power to Change our Destiny.
>> Sunita
>>
>>
>> On Sun, Nov 15, 2009 at 8:54 PM, milton ruser > >wrote:
>>
>> > Google "R graph grallery"
>> > Google "R ggplot2"
>> > Google "R lattice"
>> >
>> > and good luck
>> >
>> > milton
>> > On Sun, Nov 15, 2009 at 7:48 AM, Sunita22  wrote:
>> >
>> >>
>> >> Hello
>> >>
>> >> My data contains following columns:
>> >>
>> >> 1st column: Posts (GM, Secretary, AM, Office Boy)
>> >> 2nd Column: Dept (Finance, HR, ...)
>> >> 3rd column: Tasks (Open the door, Fix an appointment, Fill the
>> register,
>> >> etc.) depending on the post
>> >> 4th column: Average Time required to do the task
>> >>
>> >> So the sample data would look like
>> >> PostsDeptTask   Average time
>> >> Office Boy  HR   Open the door  00:00:09
>> >> Secretary   FinanceFix an appointment00.00.30
>> >> .  ..
>> >>
>> >> I am trying to represent this data in Graphical format, I tried graphs
>> >> like
>> >> Mosaic plot, etc. But it does not represent the data correctly. My aim
>> is
>> >> to
>> >> check the "amount of time and its variability for groups of tasks"
>> >>
>> >> Thank you in advance
>> >> Regards
>> >> Sunita
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Presentation-of-data-in-Graphical-format-tp26358857p26358857.html
>> >> Sent from the R help mailing list archive at Nabble.com.
>> >>
>> >> __
>> >> 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<
>> http://www.r-project.org/posting-guide.html>
>>
>> >> and provide commented, minimal, self-contained, reproducible code.
>> >>
>> >
>> >
>>
>>[[alternative HTML version deleted]]
>>
>>
>> __
>> 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.
>>
>
>

[[alternative HTML version deleted]]

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


Re: [R] Presentation of data in Graphical format

2009-11-18 Thread Sunita Patil
Thanx

but I am not able to find a graph that wud suit my data

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Sun, Nov 15, 2009 at 8:54 PM, milton ruser wrote:

> Google "R graph grallery"
> Google "R ggplot2"
> Google "R lattice"
>
> and good luck
>
> milton
> On Sun, Nov 15, 2009 at 7:48 AM, Sunita22  wrote:
>
>>
>> Hello
>>
>> My data contains following columns:
>>
>> 1st column: Posts (GM, Secretary, AM, Office Boy)
>> 2nd Column: Dept (Finance, HR, ...)
>> 3rd column: Tasks (Open the door, Fix an appointment, Fill the register,
>> etc.) depending on the post
>> 4th column: Average Time required to do the task
>>
>> So the sample data would look like
>> PostsDeptTask   Average time
>> Office Boy  HR   Open the door  00:00:09
>> Secretary   FinanceFix an appointment00.00.30
>> .  ..
>>
>> I am trying to represent this data in Graphical format, I tried graphs
>> like
>> Mosaic plot, etc. But it does not represent the data correctly. My aim is
>> to
>> check the "amount of time and its variability for groups of tasks"
>>
>> Thank you in advance
>> Regards
>> Sunita
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Presentation-of-data-in-Graphical-format-tp26358857p26358857.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> __
>> 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.
>>
>
>

[[alternative HTML version deleted]]

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


Re: [R] Calculate Averages for time data

2009-11-03 Thread Sunita Patil
Thank you so much it did solve my purpose.

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Tue, Nov 3, 2009 at 9:15 PM, Gabor Grothendieck
wrote:

> Next time please provide sample input.
>
> library(chron)
>
> # input
> ch <- c("02:24:00", "04:48:00", "07:12:00", "09:36:00", "12:00:00",
> "14:24:00", "16:48:00", "19:12:00", "21:36:00")
>
> # convert to times
> tt <- times(ch)
>
> # calculate mean
> mean(tt)
>
>
> On Tue, Nov 3, 2009 at 10:35 AM, Sunita22  wrote:
> >
> > Hello
> >
> > I have time data which is in hh:mm:ss format and I need to calculate
> > averages for this data. I tried converting the data as integer so that I
> > could calculate the average, but it doesn't serve the purpose. I tried
> using
> > Chron package also. But I am stuck up as to how to deal with the time
> data.
> > Please guide me as to how to deal with Time data in R.
> >
> > Thank you in advance
> >
> > Regards
> > Sunita
> > --
> > View this message in context:
> http://old.nabble.com/Calculate-Averages-for-time-data-tp26160202p26160202.html
> > Sent from the R help mailing list archive at Nabble.com.
> >
> > __
> > 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.
> >
>

[[alternative HTML version deleted]]

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


Re: [R] Standard Time Stamps

2009-10-28 Thread Sunita Patil
Hello Jim

Thanx a lot.

Actually since long I was trying

> dts = c("1989-09-28", "2001-01-15", "2004-08-30", "1990-02-09")
> dts
[1] "1989-09-28" "2001-01-15" "2004-08-30" "1990-02-09"
> GMT = timeDate(dts, zone = "GMT", FinCenter = "GMT")
> GMT
GMT
[1] [1989-09-28] [2001-01-15] [2004-08-30] [1990-02-09]
> difftimeDate(GMT[1:2], GMT[-(1:2)])
Time differences in days
[1] -5450  3993
attr(,"tzone")
[1] "GMT"

*But the same was not working for 2008-09-12T23:48:07.747Z

Thank you very much*, *it worked*

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Wed, Oct 28, 2009 at 9:45 PM, jim holtman  wrote:

> How about this:
>
> > x <- c("2008-09-12T23:48:07.747Z", "2008-09-12T20:35:07.747Z")
> > x.t <- as.POSIXct(x, format="%Y-%m-%dT%H:%M:%OS")
> >
> > x.t
> [1] "2008-09-12 23:48:07 EDT" "2008-09-12 20:35:07 EDT"
> > diff(x.t)
> Time difference of -3.216667 hours
> >
>
>
> On Wed, Oct 28, 2009 at 12:11 PM, Sunita22  wrote:
> >
> > Hello
> >
> > I have a data set which contains a column of Standard Time Stamps
> > (2008-09-12T23:48:07.747Z, 2008-09-12T20:35:07.747Z, etc)
> > I need to find differences in consecutive time stamps and then need to
> plot
> > a graph using it, can anyone guide me as to how to handle this type of
> data?
> >
> > Thanks in advance
> >
> > Sunita
> > --
> > View this message in context:
> http://www.nabble.com/Standard-Time-Stamps-tp26097512p26097512.html
> > Sent from the R help mailing list archive at Nabble.com.
> >
> > __
> > 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.
> >
>
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem that you are trying to solve?
>

[[alternative HTML version deleted]]

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


Re: [R] Assigning variable names from one object to another object

2009-05-24 Thread Sunita Patil
Hello Duncan

Thank you so much it worked. I think I was doing it in a more complicated
way so I didnt get a solution

Thank you very much once again

Regards
Sunita

On Sun, May 24, 2009 at 9:59 PM, Duncan Murdoch wrote:

> On 24/05/2009 12:21 PM, Sunita22 wrote:
>
>> Hello
>>
>> I have 2 datasets say Data1 and Data2 both are of different dimesions.
>> Data1:
>> 120 rows and 6 columns (Varname, Vartype, Labels, Description, )
>> The column Varname has 120 rows which has variable names such id, age,
>> gender,.so on
>>
>> Data2:
>> 12528 rows and 120 columns
>> The column names in this case are V1, V2, . V120 (which are
>> default
>> names in R when we say head=F in read.csv)
>>
>> I want to assign the variable names from Data1 to Data2 as the column
>> headings in Data2 i.e V1 should be id, V2 should be age, .. so on
>>
>> Is it possible to do in R?
>> I tired assigning variable names from Data1 in one object and transposing
>> them and then used rbind but it doesnot work.
>>
>> Can I use colnames? I could not apply it in this case. Can any1 tell me
>> how
>> can i apply it for this case?
>>
>
> names or colnames should work:
>
> colnames(Data2) <- Data1$Varname
>
> or
>
> names(Data2) <- Data1$Varname
>
>
>> or should I paste the column names in csv file (from where I have imported
>> the data) and then import in R?
>>
>
> That's another way that would work.
>
> Duncan Murdoch
>
>>
>> Thank you in advance
>>
>> Regards
>> Sunita
>>
>>
>>
>


-- 
Our Thoughts have the Power to Change our Destiny.
Sunita

[[alternative HTML version deleted]]

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


Re: [R] Importing data into R and combining 2 files

2009-05-14 Thread Sunita Patil
Hello

Yes I have used read.table("file name", sep="\t") for reading the text file

Thank you

On Thu, May 14, 2009 at 11:07 PM, jim holtman  wrote:

> What have you tried?  Check the Intro manual for hints.
>
> ?read.table   probably using sep='\t'
>
> On Thu, May 14, 2009 at 1:30 PM, Sunita22  wrote:
>
>>
>> Hello
>>
>> I have to import 2 txt files into R. 1 file contains the data and the
>> other
>> contains the header, column headings, datatypes and labels for the data.
>>
>> I have 2 problems:
>>
>> 1) my data file has mixed type of data e.g. 1 2 3 4 5 3-5 02/04/06 3 4 5
>> and
>> so on, the data file is tab separated. when I import it, the data is
>> getting
>> stored in one single variable say V1. I need to separate it into rows and
>> columns. how do I this? Which commands in R would be useful for the same?
>>
>> 2) The other file is also tab separated. the 6 lines contains header and
>> introduction as in the name of the dataset, year, etc. and then column
>> names
>> its datatypes and labels. After importing the data in this file also gets
>> stored in one single variable. I need to separate it into rows and
>> columns.
>> how do I this? Which commands in R would be useful for the same?
>>
>> Thank you in advance
>>
>> Regards
>> Sunita
>> --
>> View this message in context:
>> http://www.nabble.com/Importing-data-into-R-and-combining-2-files-tp23545291p23545291.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> __
>> 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.
>>
>
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem that you are trying to solve?
>



-- 
Our Thoughts have the Power to Change our Destiny.
Sunita

[[alternative HTML version deleted]]

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