Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread Dmitri Leybman
Not a problem at all. I figured the motley crue here couldn't be bracketed
into narrow categories.

An apparent thesis demonstrated here would be that we all speak a slightly
different form of English.

:)

On Wednesday, December 16, 2015, peter dalgaard  wrote:

>
> > On 16 Dec 2015, at 17:42 , Hadley Wickham  > wrote:
> >
> > On Wed, Dec 16, 2015 at 9:34 AM, Hadley Wickham  > wrote:
> >> On Tue, Dec 15, 2015 at 9:55 AM, Martin Maechler
> >> > wrote:
> >>>
> >>>
> >>>   []
> >>>
>  You are missing the closing bracket on the boxplot()
>  command.  Just finish with a ')'
> >>>
> >>> Hmm... I once learned
> >>>
> >>> '()' =: parenthesis/es
> >>> '[]' =: bracket(s)
> >>> '{}' =: brace(s)
> >>>
> >>> Of course, I'm not a native English speaker, and my teacher(s) /
> >>> teaching material may have been biased ... but, as all three
> >>> symbol pairs play an important role in R, I think it would be
> >>> really really helpful,  if we could agree on using the same
> >>> precise English here.
> >>>
> >>> I'm happy to re-learn, but I'd really like to end up with three
> >>> different simple English words, if possible.
> >>> (Yes, I know and have seen/heard "curly braces", "round
> >>> parentheses", ... but I'd hope we can do without the extra adjective.)
> >>
> >> I think this is what Americans are taught, but I can never remember
> >> which is which. I use round brackets, square brackets, and squiggly
> >> brackets, which are memorable, and even if you're not familiar with
> >> the terms you can easily understand what I mean.
> >
> > I should mention that all three terms have accompanying arm motions ;)
> >
>
> I just wonder whether the original poster managed to brace himself for the
> oncoming avalanche
>
> -pd
>
> > Hadley
> >
> > --
> > http://had.co.nz/
> >
> > __
> > R-help@r-project.org  mailing list -- To UNSUBSCRIBE and
> more, see
> > 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.
>
> --
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Office: A 4.23
> Email: pd@cbs.dk   Priv: pda...@gmail.com 
>
> __
> R-help@r-project.org  mailing list -- To UNSUBSCRIBE and
> more, see
> 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.
>


-- 
Sent from Gmail Mobile

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread peter dalgaard

> On 16 Dec 2015, at 17:42 , Hadley Wickham  wrote:
> 
> On Wed, Dec 16, 2015 at 9:34 AM, Hadley Wickham  wrote:
>> On Tue, Dec 15, 2015 at 9:55 AM, Martin Maechler
>>  wrote:
>>> 
>>> 
>>>   []
>>> 
 You are missing the closing bracket on the boxplot()
 command.  Just finish with a ')'
>>> 
>>> Hmm... I once learned
>>> 
>>> '()' =: parenthesis/es
>>> '[]' =: bracket(s)
>>> '{}' =: brace(s)
>>> 
>>> Of course, I'm not a native English speaker, and my teacher(s) /
>>> teaching material may have been biased ... but, as all three
>>> symbol pairs play an important role in R, I think it would be
>>> really really helpful,  if we could agree on using the same
>>> precise English here.
>>> 
>>> I'm happy to re-learn, but I'd really like to end up with three
>>> different simple English words, if possible.
>>> (Yes, I know and have seen/heard "curly braces", "round
>>> parentheses", ... but I'd hope we can do without the extra adjective.)
>> 
>> I think this is what Americans are taught, but I can never remember
>> which is which. I use round brackets, square brackets, and squiggly
>> brackets, which are memorable, and even if you're not familiar with
>> the terms you can easily understand what I mean.
> 
> I should mention that all three terms have accompanying arm motions ;)
> 

I just wonder whether the original poster managed to brace himself for the 
oncoming avalanche

-pd 

> Hadley
> 
> -- 
> http://had.co.nz/
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread Nordlund, Dan (DSHS/RDA)
Which is why England and the United States have been described as two countries 
divided  by a common language.  (Could probably throw Scotland and Australia, 
and  others, into the mix as well ... notice the parethenses, or nice round 
brackets, or  ?  :-}  )

Dan

Daniel Nordlund, PhD
Research and Data Analysis Division
Services & Enterprise Support Administration
Washington State Department of Social and Health Services


-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Dmitri Leybman
Sent: Wednesday, December 16, 2015 3:28 PM
To: peter dalgaard
Cc: r-help@r-project.org; Martin Maechler
Subject: Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

Not a problem at all. I figured the motley crue here couldn't be bracketed into 
narrow categories.

An apparent thesis demonstrated here would be that we all speak a slightly 
different form of English.

:)

On Wednesday, December 16, 2015, peter dalgaard <pda...@gmail.com> wrote:

>
> > On 16 Dec 2015, at 17:42 , Hadley Wickham <h.wick...@gmail.com
> <javascript:;>> wrote:
> >
> > On Wed, Dec 16, 2015 at 9:34 AM, Hadley Wickham <h.wick...@gmail.com
> <javascript:;>> wrote:
> >> On Tue, Dec 15, 2015 at 9:55 AM, Martin Maechler 
> >> <maech...@stat.math.ethz.ch <javascript:;>> wrote:
> >>>
> >>>
> >>>   []
> >>>
> >>>> You are missing the closing bracket on the boxplot() command.  
> >>>> Just finish with a ')'
> >>>
> >>> Hmm... I once learned
> >>>
> >>> '()' =: parenthesis/es
> >>> '[]' =: bracket(s)
> >>> '{}' =: brace(s)
> >>>
> >>> Of course, I'm not a native English speaker, and my teacher(s) / 
> >>> teaching material may have been biased ... but, as all three 
> >>> symbol pairs play an important role in R, I think it would be 
> >>> really really helpful,  if we could agree on using the same 
> >>> precise English here.
> >>>
> >>> I'm happy to re-learn, but I'd really like to end up with three 
> >>> different simple English words, if possible.
> >>> (Yes, I know and have seen/heard "curly braces", "round 
> >>> parentheses", ... but I'd hope we can do without the extra 
> >>> adjective.)
> >>
> >> I think this is what Americans are taught, but I can never remember 
> >> which is which. I use round brackets, square brackets, and squiggly 
> >> brackets, which are memorable, and even if you're not familiar with 
> >> the terms you can easily understand what I mean.
> >
> > I should mention that all three terms have accompanying arm motions 
> > ;)
> >
>
> I just wonder whether the original poster managed to brace himself for 
> the oncoming avalanche
>
> -pd
>
> > Hadley
> >
> > --
> > http://had.co.nz/
> >
> > __
> > R-help@r-project.org <javascript:;> mailing list -- To UNSUBSCRIBE 
> > and
> more, see
> > 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.
>
> --
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 
> 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Office: A 4.23
> Email: pd@cbs.dk <javascript:;>  Priv: pda...@gmail.com 
> <javascript:;>
>
> __
> R-help@r-project.org <javascript:;> mailing list -- To UNSUBSCRIBE and 
> more, see 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.
>


-- 
Sent from Gmail Mobile

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread jwd
On Wed, 16 Dec 2015 09:34:20 -0600
Hadley Wickham  wrote:

> On Tue, Dec 15, 2015 at 9:55 AM, Martin Maechler
>  wrote:
> >
> >
> >[]
> >
> > > You are missing the closing bracket on the boxplot()
> > > command.  Just finish with a ')'
> >
> > Hmm... I once learned
> >
> >  '()' =: parenthesis/es
> >  '[]' =: bracket(s)
> >  '{}' =: brace(s)
> >
That is correct, though I've generally heard braces heard called
"curly braces."

JWDougherty

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread jwd
On Wed, 16 Dec 2015 07:16:21 -0800
John Kane  wrote:

...
> 
> I have lived next door to the USA for most of my life and never
> realized that American usage is 'brackets' for  [ ] .  I would use
> the term brackets in normal use for ( ) and "square brackets for [ ]. 
> ...

There's a lot of fog in the air.  Properly, the use in the USA is as
described by Martin.  But ever since the late '60s there has been a
de-emphasis of linguistic precision and a tendency to "good enough."
Sad.

JWDougherty

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread Bert Gunter
...
which reminds me of Prof. Henry Higgins's comment in My Fair Lady in
the song "Why can't the English" :

There even are places where English completely disappears.
Why, in America, they haven't used it for years!

Cheers,
Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Wed, Dec 16, 2015 at 3:51 PM, Nordlund, Dan (DSHS/RDA)
<nord...@dshs.wa.gov> wrote:
> Which is why England and the United States have been described as two 
> countries divided  by a common language.  (Could probably throw Scotland and 
> Australia, and  others, into the mix as well ... notice the parethenses, or 
> nice round brackets, or  ?  :-}  )
>
> Dan
>
> Daniel Nordlund, PhD
> Research and Data Analysis Division
> Services & Enterprise Support Administration
> Washington State Department of Social and Health Services
>
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Dmitri Leybman
> Sent: Wednesday, December 16, 2015 3:28 PM
> To: peter dalgaard
> Cc: r-help@r-project.org; Martin Maechler
> Subject: Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.
>
> Not a problem at all. I figured the motley crue here couldn't be bracketed 
> into narrow categories.
>
> An apparent thesis demonstrated here would be that we all speak a slightly 
> different form of English.
>
> :)
>
> On Wednesday, December 16, 2015, peter dalgaard <pda...@gmail.com> wrote:
>
>>
>> > On 16 Dec 2015, at 17:42 , Hadley Wickham <h.wick...@gmail.com
>> <javascript:;>> wrote:
>> >
>> > On Wed, Dec 16, 2015 at 9:34 AM, Hadley Wickham <h.wick...@gmail.com
>> <javascript:;>> wrote:
>> >> On Tue, Dec 15, 2015 at 9:55 AM, Martin Maechler
>> >> <maech...@stat.math.ethz.ch <javascript:;>> wrote:
>> >>>
>> >>>
>> >>>   []
>> >>>
>> >>>> You are missing the closing bracket on the boxplot() command.
>> >>>> Just finish with a ')'
>> >>>
>> >>> Hmm... I once learned
>> >>>
>> >>> '()' =: parenthesis/es
>> >>> '[]' =: bracket(s)
>> >>> '{}' =: brace(s)
>> >>>
>> >>> Of course, I'm not a native English speaker, and my teacher(s) /
>> >>> teaching material may have been biased ... but, as all three
>> >>> symbol pairs play an important role in R, I think it would be
>> >>> really really helpful,  if we could agree on using the same
>> >>> precise English here.
>> >>>
>> >>> I'm happy to re-learn, but I'd really like to end up with three
>> >>> different simple English words, if possible.
>> >>> (Yes, I know and have seen/heard "curly braces", "round
>> >>> parentheses", ... but I'd hope we can do without the extra
>> >>> adjective.)
>> >>
>> >> I think this is what Americans are taught, but I can never remember
>> >> which is which. I use round brackets, square brackets, and squiggly
>> >> brackets, which are memorable, and even if you're not familiar with
>> >> the terms you can easily understand what I mean.
>> >
>> > I should mention that all three terms have accompanying arm motions
>> > ;)
>> >
>>
>> I just wonder whether the original poster managed to brace himself for
>> the oncoming avalanche
>>
>> -pd
>>
>> > Hadley
>> >
>> > --
>> > http://had.co.nz/
>> >
>> > __
>> > R-help@r-project.org <javascript:;> mailing list -- To UNSUBSCRIBE
>> > and
>> more, see
>> > 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.
>>
>> --
>> Peter Dalgaard, Professor,
>> Center for Statistics, Copenhagen Business School Solbjerg Plads 3,
>> 2000 Frederiksberg, Denmark
>> Phone: (+45)38153501
>> Office: A 4.23
>> Email: pd@cbs.dk <javascript:;>  Priv: pda...@gmail.com
>> <javascript:;>
>>
>> __
>> R-help@r-project.org <javascript:;> mailing list -- To UNSUBSCRIBE and
>>

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread John Kane


John Kane
Kingston ON Canada


> -Original Message-
> From: s.elli...@lgcgroup.com
> Sent: Tue, 15 Dec 2015 19:17:59 +
> To: r-help@r-project.org
> Subject: Re: [R] Make a box-whiskers plot in R with 5 variables, color
> coded.
> 
>> It is clear that a ) although is a type of bracket it is called a
>> parenthesis, just as ,
>> is called a comma, which is a type of punctuation mark.
> 
> These things are called parentheses because of what they do, not what
> they are.
> A parenthesis is any word or phrase inserted as an explanation or
> afterthought into text that would be is grammatically complete without
> it, usually bounded by punctuation. The bounding punctuation marks are
> then called parentheses, and can be round, square, or curly brackets,
> dashes, or just commas.
> 
> So (),  [], {}, - ... -  and , ... , are _all_ pairs of parentheses in
> grammatical usage.
> 
> Three of them are also kinds of bracket, but not the only kinds.
> 
> There's a disturbingly extensive article on it at
> https://en.wikipedia.org/wiki/Bracket#Names_for_various_bracket_symbols

I have lived next door to the USA for most of my life and never realized that 
American usage is 'brackets' for  [ ] .  I would use the term brackets in 
normal use for ( ) and "square brackets for [ ]. 

> 
> which suggests to me that the terms are unlikely to be standardised
> quickly.
> 
> Steve E

I am not expecting standardization any time this year.


FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread Hadley Wickham
On Tue, Dec 15, 2015 at 9:55 AM, Martin Maechler
 wrote:
>
>
>[]
>
> > You are missing the closing bracket on the boxplot()
> > command.  Just finish with a ')'
>
> Hmm... I once learned
>
>  '()' =: parenthesis/es
>  '[]' =: bracket(s)
>  '{}' =: brace(s)
>
> Of course, I'm not a native English speaker, and my teacher(s) /
> teaching material may have been biased ... but, as all three
> symbol pairs play an important role in R, I think it would be
> really really helpful,  if we could agree on using the same
> precise English here.
>
> I'm happy to re-learn, but I'd really like to end up with three
> different simple English words, if possible.
> (Yes, I know and have seen/heard "curly braces", "round
>  parentheses", ... but I'd hope we can do without the extra adjective.)

I think this is what Americans are taught, but I can never remember
which is which. I use round brackets, square brackets, and squiggly
brackets, which are memorable, and even if you're not familiar with
the terms you can easily understand what I mean.

Hadley

-- 
http://had.co.nz/

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread Michael Dewey
As a speaker of the dialect of British English current in southern 
England I think:


1 - the generic term for all three is brackets. As a child I was taught 
the precedence rules for arithmetic operators by the mnemonic BODMAS 
(the O stands for 'of')
2 - careful speakers of the dialect who know all three use exactly the 
terms used in the canton of Zuerich by Martin as he uses them
3 - I would use square brackets and curly brackets to a non-technical 
audience but I could not bring myself to say round brackets



On 16/12/2015 15:34, Hadley Wickham wrote:

On Tue, Dec 15, 2015 at 9:55 AM, Martin Maechler
 wrote:



[]

 > You are missing the closing bracket on the boxplot()
 > command.  Just finish with a ')'

Hmm... I once learned

  '()' =: parenthesis/es
  '[]' =: bracket(s)
  '{}' =: brace(s)

Of course, I'm not a native English speaker, and my teacher(s) /
teaching material may have been biased ... but, as all three
symbol pairs play an important role in R, I think it would be
really really helpful,  if we could agree on using the same
precise English here.

I'm happy to re-learn, but I'd really like to end up with three
different simple English words, if possible.
(Yes, I know and have seen/heard "curly braces", "round
  parentheses", ... but I'd hope we can do without the extra adjective.)


I think this is what Americans are taught, but I can never remember
which is which. I use round brackets, square brackets, and squiggly
brackets, which are memorable, and even if you're not familiar with
the terms you can easily understand what I mean.

Hadley



--
Michael
http://www.dewey.myzen.co.uk/home.html

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread Hadley Wickham
On Wed, Dec 16, 2015 at 9:34 AM, Hadley Wickham  wrote:
> On Tue, Dec 15, 2015 at 9:55 AM, Martin Maechler
>  wrote:
>>
>>
>>[]
>>
>> > You are missing the closing bracket on the boxplot()
>> > command.  Just finish with a ')'
>>
>> Hmm... I once learned
>>
>>  '()' =: parenthesis/es
>>  '[]' =: bracket(s)
>>  '{}' =: brace(s)
>>
>> Of course, I'm not a native English speaker, and my teacher(s) /
>> teaching material may have been biased ... but, as all three
>> symbol pairs play an important role in R, I think it would be
>> really really helpful,  if we could agree on using the same
>> precise English here.
>>
>> I'm happy to re-learn, but I'd really like to end up with three
>> different simple English words, if possible.
>> (Yes, I know and have seen/heard "curly braces", "round
>>  parentheses", ... but I'd hope we can do without the extra adjective.)
>
> I think this is what Americans are taught, but I can never remember
> which is which. I use round brackets, square brackets, and squiggly
> brackets, which are memorable, and even if you're not familiar with
> the terms you can easily understand what I mean.

I should mention that all three terms have accompanying arm motions ;)

Hadley

-- 
http://had.co.nz/

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Clint Bowman

Martin,

I grew up in the Midwest of the United States--about as native English 
speaker as you could find.  I was taught exactly the same as you have 
learned.


Clint

Clint BowmanINTERNET:   cl...@ecy.wa.gov
Air Quality Modeler INTERNET:   cl...@math.utah.edu
Department of Ecology   VOICE:  (360) 407-6815
PO Box 47600FAX:(360) 407-7534
Olympia, WA 98504-7600

USPS:   PO Box 47600, Olympia, WA 98504-7600
Parcels:300 Desmond Drive, Lacey, WA 98503-1274

On Tue, 15 Dec 2015, Martin Maechler wrote:




  []

   > You are missing the closing bracket on the boxplot()
   > command.  Just finish with a ')'

Hmm... I once learned

'()' =: parenthesis/es
'[]' =: bracket(s)
'{}' =: brace(s)

Of course, I'm not a native English speaker, and my teacher(s) /
teaching material may have been biased ... but, as all three
symbol pairs play an important role in R, I think it would be
really really helpful,  if we could agree on using the same
precise English here.

I'm happy to re-learn, but I'd really like to end up with three
different simple English words, if possible.
(Yes, I know and have seen/heard "curly braces", "round
parentheses", ... but I'd hope we can do without the extra adjective.)

Thank you, well versed English (or "American") learned readers
of R-help, for wise guidance on this ...

Martin

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Marc Schwartz

> On Dec 15, 2015, at 9:55 AM, Martin Maechler  
> wrote:
> 
> 
> 
>   []
> 
>> You are missing the closing bracket on the boxplot()
>> command.  Just finish with a ')'
> 
> Hmm... I once learned
> 
> '()' =: parenthesis/es
> '[]' =: bracket(s)
> '{}' =: brace(s)


Martin,

The above is how I would refer to each.

Regards,

Marc


> 
> Of course, I'm not a native English speaker, and my teacher(s) /
> teaching material may have been biased ... but, as all three
> symbol pairs play an important role in R, I think it would be
> really really helpful,  if we could agree on using the same
> precise English here.
> 
> I'm happy to re-learn, but I'd really like to end up with three
> different simple English words, if possible.
> (Yes, I know and have seen/heard "curly braces", "round
> parentheses", ... but I'd hope we can do without the extra adjective.)
> 
> Thank you, well versed English (or "American") learned readers
> of R-help, for wise guidance on this ...
> 
> Martin
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread PIKAL Petr
Hi

I do not see any problem. Due to HTML posting we are not able to decipher what 
you are missing. Probably right parentheses.

I would start from beginning by

boxplot(data)

and gradually add required colour and other items to your boxplot.

Cheers
Petr

> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Dmitri
> Leybman
> Sent: Tuesday, December 15, 2015 4:06 PM
> To: peter dalgaard; r-help@r-project.org; dwinsem...@comcast.net
> Subject: Re: [R] Make a box-whiskers plot in R with 5 variables, color
> coded.
>
> Apologies for the HTML.
>
> This is the initial snippet of the values:
>
> Var1 Var2 Var3 Var4 Var5
> 0 0 7 1 0
> 0 0 7 0 0
> 1 1 8 2 0
> 5 5 8 0 0
> 1 4 8 1 0
> 4 5 8 0 0
> 0 1 7 2 1
> 5 1 7 0 0
> 2 4 9 0 1
> 1 2 9 2 NA
> 1 5 7 1 0
> 4 1 8 0 0
> 2 7 7 1 0
> 7 7 6 2 NA
> 5 2 7 0 0
> 0 1 7 0 4
> 1 3 8 1 0
> 1 5 7 2 0
> 7 2 8 0 0
> 7 0 8 2 0
> 7 5 8 2 0
> 2 0 9 1 0
> 1 6 8 1 0
> 3 4 7 0 2
>
>
>
> I have tried:
>
>
>boxplot(data, las = 2, col =
>
>c("red", "blue", "black", "aquamarine1", "darkorange3"),
>
>at = c(1, 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1),
>
>names = c("Meeting1", "Meeting2", "Meeting3", "Meeting4","Meeting5")
>
>
> and have gotten a '+' at the end meaning I am missing something.
>
>
> I used a modify version of the code I found on R-Help for Box-Whiskers
> plot formation <http://www.r-bloggers.com/box-plot-with-r-tutorial/>
>
>
> The code this blogger used was
>
>boxplot(data, ylab =“Oxigen (%)”, xlab =“Time”, las = 2,
>
>col =
>
> c(“red”,“sienna”,“palevioletred1″,“royalblue2″,“red”,“sienna”,“paleviol
> etred1″,
>
>“royalblue2″,“red”,“sienna”,“palevioletred1″,“royalblue2″),
>
> at = c(1,2,3,4,  6,7,8,9, 11,12,13,14), par(mar = c(12, 5, 4,
> 2) + 0.1),
>
> names = c(“Station 1″,“Station 2″,“Station 3″,“Station
> 4″,“Station
>
>
> 1″,“Station 2″,“Station 3″,“Station 4″,“Station 1″,“Station
> 2″,“Station
>
>  3″,“Station 4″))
>
>
> I am trying to use the code above to create a five different box-and-
> whiskers plots color-coded. I don't need the "Station 1" or "Station 2"
> labels but I used this code as a starting point for the code I wanted
> write.  .
>
>
> I wanted the y-axis to read "Number of People Attended" instead of
> "Oxigen (%)"
>
>
> and the x-axis to refer to the particular meeting in question:
>
>
>Meeting1, Meeting2, Meeting3, Meeting4, Meeting5
>
>
> which corresponds to variables var1, var2, var3, var4, var5.
>
>
> Each of the box and whiskers would show the median number, along with
> interquartile values, of each of these Meetings. The color coding is
> not necessarily but I think would make it a bit easier to read for
> observers.
>
> I apologize again for the convoluted reply and the HTML error.
>
>
> On Mon, Dec 14, 2015 at 5:42 PM, peter dalgaard <pda...@gmail.com>
> wrote:
>
> >
> > > On 14 Dec 2015, at 22:54 , David Winsemius <dwinsem...@comcast.net>
> > wrote:
> > >
> > >>
> > >> On Dec 14, 2015, at 1:34 PM, Dmitri Leybman <dleyb...@gmail.com>
> wrote:
> > >>
> > >> I have a spreadsheet with five different columns standing for five
> > >> different variables:
> > >>
> > >> Variable 1 Variable 2 Variable 3 Variable 4 Variable 5 0 0 7 1 0 0
> > >> 0 7
> > 0 0 1
> > >> 1 8 2 0 5 5 8 0 0 1 4 8 1 0 4 5 8 0 0 0 1 7 2 1 I am trying to
> > >> create five box and whiskers plots on a single graph
> > with a
> > >> five x-label ticks named for each one of the variables along with
> > >> color coding. The names for the x-label would
> > be
> > >> "Meeting"[ pertains to Variable1] "Meeting2"[pertains to Variable
> > >> 2] Meeting3[pertains to Variable 3], Meeting4[pertains to
> > >> Variable4], Meeting5[pertains to Variable5].
> > >>
> > >> I have tried:
> > >>
> > >> boxplot(data, las = 2, col =
> > >> c("red", "blue", "black", "aquamarine1", "darkorange3") , at =
> c(1,
> > >> 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1), names = c("Meeting
> > >> 1", "'Meeting2",
> > > ^
> > > Extra single quote about

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread David Winsemius

> On Dec 15, 2015, at 8:54 AM, Clint Bowman  wrote:
> 
> Martin,
> 
> I grew up in the Midwest of the United States--about as native English 
> speaker as you could find.  I was taught exactly the same as you have learned.

As with your experience, Clint and Martin, but my online experience is that 
those speaking "English English" often refer to "(" as "brackets". As a result 
I generally now call them square-brackets to avoid ambiguity.

-- 
David.

> 
> Clint
> 
> Clint Bowman  INTERNET:   cl...@ecy.wa.gov
> Air Quality Modeler   INTERNET:   cl...@math.utah.edu
> Department of Ecology VOICE:  (360) 407-6815
> PO Box 47600  FAX:(360) 407-7534
> Olympia, WA 98504-7600
> 
>USPS:   PO Box 47600, Olympia, WA 98504-7600
>Parcels:300 Desmond Drive, Lacey, WA 98503-1274
> 
> On Tue, 15 Dec 2015, Martin Maechler wrote:
> 
>> 
>> 
>>  []
>> 
>>   > You are missing the closing bracket on the boxplot()
>>   > command.  Just finish with a ')'
>> 
>> Hmm... I once learned
>> 
>> '()' =: parenthesis/es
>> '[]' =: bracket(s)
>> '{}' =: brace(s)
>> 
>> Of course, I'm not a native English speaker, and my teacher(s) /
>> teaching material may have been biased ... but, as all three
>> symbol pairs play an important role in R, I think it would be
>> really really helpful,  if we could agree on using the same
>> precise English here.
>> 
>> I'm happy to re-learn, but I'd really like to end up with three
>> different simple English words, if possible.
>> (Yes, I know and have seen/heard "curly braces", "round
>> parentheses", ... but I'd hope we can do without the extra adjective.)
>> 
>> Thank you, well versed English (or "American") learned readers
>> of R-help, for wise guidance on this ...
>> 
>> Martin
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>> 
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread John Sorkin
On this side of the Atlantic, the symbols ( or ) are properly called 
parenthesis not brackets. Consider the expression parenthetical expression, 
which means something enclosed in parentheses.
John


> John David Sorkin M.D., Ph.D.
> Professor of Medicine
> Chief, Biostatistics and Informatics
> University of Maryland School of Medicine Division of Gerontology and 
> Geriatric Medicine
> Baltimore VA Medical Center
> 10 North Greene Street
> GRECC (BT/18/GR)
> Baltimore, MD 21201-1524
> (Phone) 410-605-7119
> (Fax) 410-605-7913 (Please call phone number above prior to faxing)


> On Dec 15, 2015, at 12:23 PM, David Winsemius  wrote:
> 
> 
>> On Dec 15, 2015, at 8:54 AM, Clint Bowman  wrote:
>> 
>> Martin,
>> 
>> I grew up in the Midwest of the United States--about as native English 
>> speaker as you could find.  I was taught exactly the same as you have 
>> learned.
> 
> As with your experience, Clint and Martin, but my online experience is that 
> those speaking "English English" often refer to "(" as "brackets". As a 
> result I generally now call them square-brackets to avoid ambiguity.
> 
> -- 
> David.
> 
>> 
>> Clint
>> 
>> Clint BowmanINTERNET:cl...@ecy.wa.gov
>> Air Quality ModelerINTERNET:cl...@math.utah.edu
>> Department of EcologyVOICE:(360) 407-6815
>> PO Box 47600FAX:(360) 407-7534
>> Olympia, WA 98504-7600
>> 
>>   USPS:   PO Box 47600, Olympia, WA 98504-7600
>>   Parcels:300 Desmond Drive, Lacey, WA 98503-1274
>> 
>>> On Tue, 15 Dec 2015, Martin Maechler wrote:
>>> 
>>> 
>>> 
>>> []
>>> 
 You are missing the closing bracket on the boxplot()
 command.  Just finish with a ')'
>>> 
>>> Hmm... I once learned
>>> 
>>> '()' =: parenthesis/es
>>> '[]' =: bracket(s)
>>> '{}' =: brace(s)
>>> 
>>> Of course, I'm not a native English speaker, and my teacher(s) /
>>> teaching material may have been biased ... but, as all three
>>> symbol pairs play an important role in R, I think it would be
>>> really really helpful,  if we could agree on using the same
>>> precise English here.
>>> 
>>> I'm happy to re-learn, but I'd really like to end up with three
>>> different simple English words, if possible.
>>> (Yes, I know and have seen/heard "curly braces", "round
>>> parentheses", ... but I'd hope we can do without the extra adjective.)
>>> 
>>> Thank you, well versed English (or "American") learned readers
>>> of R-help, for wise guidance on this ...
>>> 
>>> Martin
>>> 
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> 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.
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
> 
> David Winsemius
> Alameda, CA, USA
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

Confidentiality Statement:
This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
Any unauthorized use, disclosure or distribution is prohibited. If you are not 
the intended recipient, please contact the sender by reply email and destroy 
all copies of the original message. 
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread S Ellison
> It is clear that a ) although is a type of bracket it is called a 
> parenthesis, just as ,
> is called a comma, which is a type of punctuation mark.

These things are called parentheses because of what they do, not what they are. 
A parenthesis is any word or phrase inserted as an explanation or afterthought 
into text that would be is grammatically complete without it, usually bounded 
by punctuation. The bounding punctuation marks are then called parentheses, and 
can be round, square, or curly brackets, dashes, or just commas.

So (),  [], {}, - ... -  and , ... , are _all_ pairs of parentheses in 
grammatical usage. 

Three of them are also kinds of bracket, but not the only kinds. 

There's a disturbingly extensive article on it at 
https://en.wikipedia.org/wiki/Bracket#Names_for_various_bracket_symbols

which suggests to me that the terms are unlikely to be standardised quickly.

Steve E


***
This email and any attachments are confidential. Any use...{{dropped:8}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread John Sorkin
Just as there are several types of punctuation marks, 
, ; : .
also called comma, semi-colon, colon, period (or full stop on the east side of 
the Atlantic),
so to are there two types of brackets
[   )  
also called square brackets, parenthesis.
 
It is clear that a ) although is a type of bracket it is called a parenthesis, 
just as , is called a comma, which is a type of punctuation mark.
John
 
 
 



John David Sorkin M.D., Ph.D.
Professor of Medicine
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology and Geriatric 
Medicine
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing) 
>>> Berend Hasselman  12/15/15 12:59 PM >>>

> On 15 Dec 2015, at 18:49, John Sorkin  wrote:
> 
> On this side of the Atlantic, the symbols ( or ) are properly called 
> parenthesis not brackets. Consider the expression parenthetical expression, 
> which means something enclosed in parentheses.
> John
> 


According to http://www.oxforddictionaries.com/words/brackets
I gather that to avoid ambiguity and/or confusion one could/would use round 
brackets for () (parentheses).


Berend
Confidentiality Statement:
This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
Any unauthorized use, disclosure or distribution is prohibited. If you are not 
the intended recipient, please contact the sender by reply email and destroy 
all copies of the original message. 
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Berend Hasselman

> On 15 Dec 2015, at 18:49, John Sorkin  wrote:
> 
> On this side of the Atlantic, the symbols ( or ) are properly called 
> parenthesis not brackets. Consider the expression parenthetical expression, 
> which means something enclosed in parentheses.
> John
> 


According to http://www.oxforddictionaries.com/words/brackets
I gather that to avoid ambiguity and/or confusion one could/would use round 
brackets for () (parentheses).


Berend

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread David Winsemius

> On Dec 15, 2015, at 9:21 AM, David Winsemius  wrote:
> 
> 
>> On Dec 15, 2015, at 8:54 AM, Clint Bowman  wrote:
>> 
>> Martin,
>> 
>> I grew up in the Midwest of the United States--about as native English 
>> speaker as you could find.  I was taught exactly the same as you have 
>> learned.
> 
> As with your experience, Clint and Martin, but my online experience is that 
> those speaking "English English" often refer to "(" as "brackets". As a 
> result I generally now call them square-brackets to avoid ambiguity.

I intended to say that I call "[" and "]" square-brackets.

-- 
> David.
> 
>> 
>> Clint
>> 
>> Clint Bowman INTERNET:   cl...@ecy.wa.gov
>> Air Quality Modeler  INTERNET:   cl...@math.utah.edu
>> Department of EcologyVOICE:  (360) 407-6815
>> PO Box 47600 FAX:(360) 407-7534
>> Olympia, WA 98504-7600
>> 
>>   USPS:   PO Box 47600, Olympia, WA 98504-7600
>>   Parcels:300 Desmond Drive, Lacey, WA 98503-1274
>> 
>> On Tue, 15 Dec 2015, Martin Maechler wrote:
>> 
>>> 
>>> 
>>> []
>>> 
 You are missing the closing bracket on the boxplot()
 command.  Just finish with a ')'
>>> 
>>> Hmm... I once learned
>>> 
>>> '()' =: parenthesis/es
>>> '[]' =: bracket(s)
>>> '{}' =: brace(s)
>>> 
>>> Of course, I'm not a native English speaker, and my teacher(s) /
>>> teaching material may have been biased ... but, as all three
>>> symbol pairs play an important role in R, I think it would be
>>> really really helpful,  if we could agree on using the same
>>> precise English here.
>>> 
>>> I'm happy to re-learn, but I'd really like to end up with three
>>> different simple English words, if possible.
>>> (Yes, I know and have seen/heard "curly braces", "round
>>> parentheses", ... but I'd hope we can do without the extra adjective.)
>>> 
>>> Thank you, well versed English (or "American") learned readers
>>> of R-help, for wise guidance on this ...
>>> 
>>> Martin
>>> 
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> 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.
>>> 
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
> 
> David Winsemius
> Alameda, CA, USA
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Jim Lemon
Hi,
My understanding is:

() - parentheses
{} - braces
[] - square brackets
<> - angle brackets

Jim


On Wed, Dec 16, 2015 at 6:17 AM, S Ellison  wrote:

> > It is clear that a ) although is a type of bracket it is called a
> parenthesis, just as ,
> > is called a comma, which is a type of punctuation mark.
>
> These things are called parentheses because of what they do, not what they
> are.
> A parenthesis is any word or phrase inserted as an explanation or
> afterthought into text that would be is grammatically complete without it,
> usually bounded by punctuation. The bounding punctuation marks are then
> called parentheses, and can be round, square, or curly brackets, dashes, or
> just commas.
>
> So (),  [], {}, - ... -  and , ... , are _all_ pairs of parentheses in
> grammatical usage.
>
> Three of them are also kinds of bracket, but not the only kinds.
>
> There's a disturbingly extensive article on it at
> https://en.wikipedia.org/wiki/Bracket#Names_for_various_bracket_symbols
>
> which suggests to me that the terms are unlikely to be standardised
> quickly.
>
> Steve E
>
>
> ***
> This email and any attachments are confidential. Any u...{{dropped:13}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Martin Maechler


   [] 

> You are missing the closing bracket on the boxplot()
> command.  Just finish with a ')'

Hmm... I once learned

 '()' =: parenthesis/es
 '[]' =: bracket(s)
 '{}' =: brace(s)

Of course, I'm not a native English speaker, and my teacher(s) /
teaching material may have been biased ... but, as all three
symbol pairs play an important role in R, I think it would be
really really helpful,  if we could agree on using the same
precise English here.

I'm happy to re-learn, but I'd really like to end up with three
different simple English words, if possible.
(Yes, I know and have seen/heard "curly braces", "round
 parentheses", ... but I'd hope we can do without the extra adjective.)

Thank you, well versed English (or "American") learned readers
of R-help, for wise guidance on this ...

Martin

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread Dmitri Leybman
Apologies for the HTML.

This is the initial snippet of the values:

Var1 Var2 Var3 Var4 Var5
0 0 7 1 0
0 0 7 0 0
1 1 8 2 0
5 5 8 0 0
1 4 8 1 0
4 5 8 0 0
0 1 7 2 1
5 1 7 0 0
2 4 9 0 1
1 2 9 2 NA
1 5 7 1 0
4 1 8 0 0
2 7 7 1 0
7 7 6 2 NA
5 2 7 0 0
0 1 7 0 4
1 3 8 1 0
1 5 7 2 0
7 2 8 0 0
7 0 8 2 0
7 5 8 2 0
2 0 9 1 0
1 6 8 1 0
3 4 7 0 2



I have tried:


   boxplot(data, las = 2, col =

   c("red", "blue", "black", "aquamarine1", "darkorange3"),

   at = c(1, 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1),

   names = c("Meeting1", "Meeting2", "Meeting3", "Meeting4","Meeting5")


and have gotten a '+' at the end meaning I am missing something.


I used a modify version of the code I found on R-Help for Box-Whiskers plot
formation 


The code this blogger used was

   boxplot(data, ylab =“Oxigen (%)”, xlab =“Time”, las = 2,

   col =
 c(“red”,“sienna”,“palevioletred1″,“royalblue2″,“red”,“sienna”,“palevioletred1″,

   “royalblue2″,“red”,“sienna”,“palevioletred1″,“royalblue2″),

at = c(1,2,3,4,  6,7,8,9, 11,12,13,14), par(mar = c(12, 5, 4, 2) +
0.1),

names = c(“Station 1″,“Station 2″,“Station 3″,“Station 4″,“Station


1″,“Station 2″,“Station 3″,“Station 4″,“Station 1″,“Station
2″,“Station

 3″,“Station 4″))


I am trying to use the code above to create a five different
box-and-whiskers plots color-coded. I don't need the "Station 1" or
"Station 2" labels but I used this code as a starting point for the code I
wanted write.  .


I wanted the y-axis to read "Number of People Attended" instead of "Oxigen
(%)"


and the x-axis to refer to the particular meeting in question:


   Meeting1, Meeting2, Meeting3, Meeting4, Meeting5


which corresponds to variables var1, var2, var3, var4, var5.


Each of the box and whiskers would show the median number, along with
interquartile values, of each of these Meetings. The color coding is not
necessarily but I think would make it a bit easier to read for observers.

I apologize again for the convoluted reply and the HTML error.


On Mon, Dec 14, 2015 at 5:42 PM, peter dalgaard  wrote:

>
> > On 14 Dec 2015, at 22:54 , David Winsemius 
> wrote:
> >
> >>
> >> On Dec 14, 2015, at 1:34 PM, Dmitri Leybman  wrote:
> >>
> >> I have a spreadsheet with five different columns standing for five
> >> different variables:
> >>
> >> Variable 1 Variable 2 Variable 3 Variable 4 Variable 5 0 0 7 1 0 0 0 7
> 0 0 1
> >> 1 8 2 0 5 5 8 0 0 1 4 8 1 0 4 5 8 0 0 0 1 7 2 1
> >> I am trying to create five box and whiskers plots on a single graph
> with a
> >> five x-label ticks named for each one of
> >> the variables along with color coding. The names for the x-label would
> be
> >> "Meeting"[ pertains to Variable1] "Meeting2"[pertains to Variable 2]
> >> Meeting3[pertains to Variable 3], Meeting4[pertains to Variable4],
> >> Meeting5[pertains to Variable5].
> >>
> >> I have tried:
> >>
> >> boxplot(data, las = 2, col =
> >> c("red", "blue", "black", "aquamarine1", "darkorange3")
> >> , at = c(1, 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1),
> >> names = c("Meeting 1", "'Meeting2",
> > ^
> > Extra single quote about here
> >
>
> Hmm, at face value, that should just become part of the label...
>
> >
> >> "Meeting3", "Meeting4","Meeting5")
> >>
> >>
> >> Error: unexpected string constant in:
> >> "boxplot(data, las=2, col= c('red', 'blue', 'red', 'red', red')
> >> boxplot(data, las=2, col= c('"
>
>
> ...but the error message doesn't match the input, which is lacking a right
> parenthesis. So is there a previous incomplete command maybe, or are we
> just being shown random snippets of things that didn't work??
>
> I think we need to see a full transcript
>
>
> >>
> >>  [[alternative HTML version deleted]]
> >>
>
>
> ...and PLEASE in plain text, not HTML.
>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> 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.
> >
> > David Winsemius
> > Alameda, CA, USA
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > 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.
>
> --
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Office: A 4.23
> Email: pd@cbs.dk  Priv: pda...@gmail.com
>
>
>
>
>
>
>
>
>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To 

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-15 Thread S Ellison


 
> I have tried:
> 
>boxplot(data, las = 2, col =
>c("red", "blue", "black", "aquamarine1", "darkorange3"),
>at = c(1, 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1),
>names = c("Meeting1", "Meeting2", "Meeting3", "Meeting4","Meeting5")
> 
> and have gotten a '+' at the end meaning I am missing something.

You are missing the closing bracket on the boxplot() command.
Just finish with a ')'

S Ellison


***
This email and any attachments are confidential. Any use, copying or
disclosure other than by the intended recipient is unauthorised. If 
you have received this message in error, please notify the sender 
immediately via +44(0)20 8943 7000 or notify postmas...@lgcgroup.com 
and delete this message and any copies from your computer and network. 
LGC Limited. Registered in England 2991879. 
Registered office: Queens Road, Teddington, Middlesex, TW11 0LY, UK
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-14 Thread Dmitri Leybman
I have a spreadsheet with five different columns standing for five
different variables:

Variable 1 Variable 2 Variable 3 Variable 4 Variable 5 0 0 7 1 0 0 0 7 0 0 1
1 8 2 0 5 5 8 0 0 1 4 8 1 0 4 5 8 0 0 0 1 7 2 1
I am trying to create five box and whiskers plots on a single graph with a
five x-label ticks named for each one of
the variables along with color coding. The names for the x-label would be
"Meeting"[ pertains to Variable1] "Meeting2"[pertains to Variable 2]
Meeting3[pertains to Variable 3], Meeting4[pertains to Variable4],
Meeting5[pertains to Variable5].

I have tried:

boxplot(data, las = 2, col =
c("red", "blue", "black", "aquamarine1", "darkorange3")
, at = c(1, 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1),
names = c("Meeting 1", "'Meeting2", "Meeting3", "Meeting4","Meeting5")


Error: unexpected string constant in:
"boxplot(data, las=2, col= c('red', 'blue', 'red', 'red', red')
boxplot(data, las=2, col= c('"

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-14 Thread David Winsemius

> On Dec 14, 2015, at 1:34 PM, Dmitri Leybman  wrote:
> 
> I have a spreadsheet with five different columns standing for five
> different variables:
> 
> Variable 1 Variable 2 Variable 3 Variable 4 Variable 5 0 0 7 1 0 0 0 7 0 0 1
> 1 8 2 0 5 5 8 0 0 1 4 8 1 0 4 5 8 0 0 0 1 7 2 1
> I am trying to create five box and whiskers plots on a single graph with a
> five x-label ticks named for each one of
> the variables along with color coding. The names for the x-label would be
> "Meeting"[ pertains to Variable1] "Meeting2"[pertains to Variable 2]
> Meeting3[pertains to Variable 3], Meeting4[pertains to Variable4],
> Meeting5[pertains to Variable5].
> 
> I have tried:
> 
> boxplot(data, las = 2, col =
> c("red", "blue", "black", "aquamarine1", "darkorange3")
> , at = c(1, 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1),
> names = c("Meeting 1", "'Meeting2",
 ^
Extra single quote about here


> "Meeting3", "Meeting4","Meeting5")
> 
> 
> Error: unexpected string constant in:
> "boxplot(data, las=2, col= c('red', 'blue', 'red', 'red', red')
> boxplot(data, las=2, col= c('"
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-14 Thread peter dalgaard

> On 14 Dec 2015, at 22:54 , David Winsemius  wrote:
> 
>> 
>> On Dec 14, 2015, at 1:34 PM, Dmitri Leybman  wrote:
>> 
>> I have a spreadsheet with five different columns standing for five
>> different variables:
>> 
>> Variable 1 Variable 2 Variable 3 Variable 4 Variable 5 0 0 7 1 0 0 0 7 0 0 1
>> 1 8 2 0 5 5 8 0 0 1 4 8 1 0 4 5 8 0 0 0 1 7 2 1
>> I am trying to create five box and whiskers plots on a single graph with a
>> five x-label ticks named for each one of
>> the variables along with color coding. The names for the x-label would be
>> "Meeting"[ pertains to Variable1] "Meeting2"[pertains to Variable 2]
>> Meeting3[pertains to Variable 3], Meeting4[pertains to Variable4],
>> Meeting5[pertains to Variable5].
>> 
>> I have tried:
>> 
>> boxplot(data, las = 2, col =
>> c("red", "blue", "black", "aquamarine1", "darkorange3")
>> , at = c(1, 2, 3, 4, 5), par(mar = c(12, 5, 4, 2) + 0.1),
>> names = c("Meeting 1", "'Meeting2",
> ^
> Extra single quote about here
> 

Hmm, at face value, that should just become part of the label...

> 
>> "Meeting3", "Meeting4","Meeting5")
>> 
>> 
>> Error: unexpected string constant in:
>> "boxplot(data, las=2, col= c('red', 'blue', 'red', 'red', red')
>> boxplot(data, las=2, col= c('"


...but the error message doesn't match the input, which is lacking a right 
parenthesis. So is there a previous incomplete command maybe, or are we just 
being shown random snippets of things that didn't work??

I think we need to see a full transcript


>> 
>>  [[alternative HTML version deleted]]
>> 


...and PLEASE in plain text, not HTML.

>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
> 
> David Winsemius
> Alameda, CA, USA
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.