[R] bargraph.CI and arrows

2015-02-04 Thread Reid, Doug (MNRF)
Hello R-Help folks. I'm fairly new to R and particularly the graphing functions. The figures I have made look great though and so I want to use it more. I am using bargraph.CI and have made several charts successfully using raw data. I have a figure, however that doesn't lend itself to the fu

Re: [R] bargraph.CI

2013-12-11 Thread yuanzhi
quot;H")) > > table(z2) > z2 > L M H > 1 0 2 > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > >> -Original Message- >> From: > r-help-bounces@ > [mailto: > r-help-bounces@ > ] On Behalf >> O

Re: [R] bargraph.CI

2013-12-11 Thread William Dunlap
iginal Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Sarah Goslee > Sent: Wednesday, December 11, 2013 2:24 PM > To: Yuanzhi Li > Cc: r-help > Subject: Re: [R] bargraph.CI > > Without knowing where you got bargr

Re: [R] bargraph.CI

2013-12-11 Thread Sarah Goslee
Did you try what I suggested, which was to check your factor levels with str()? And no, pasting your data into an email is not helpful, because it does not tell me how R sees it. Using str() to provide that information, or dput() to provide the data itself, is necessary. Sarah On Wed, Dec 11, 20

Re: [R] bargraph.CI

2013-12-11 Thread Sarah Goslee
Without knowing where you got bargraph.CI() I can't answer that part, since it isn't part of base R, but the most likely cause is that you did not specify the desired levels of your factor. You can check with str(). Compare: > testdata <- factor(c("a", "b", "a", "c", "b")) > str(testdata) Factor

[R] bargraph.CI

2013-12-11 Thread Yuanzhi Li
hello, I had a problem with the function "bargraph.CI". "bargraph.CI" draws a figure according to the alphabet sequence of the factor used. For example, I have a factor with for levels "CK", "N5", "N10", "N15", but the bars appear in "CK","N10","N15","N5" order(alphabet sequence), but I w

Re: [R] bargraph.ci - CI and color question.

2009-11-03 Thread Michael Just
Thank you. On Tue, Nov 3, 2009 at 3:08 PM, Manuel Morales wrote: > On Tue, 2009-11-03 at 10:20 -0600, Michael Just wrote: >> Hello, >> >> Thanks for the responses.  Yes, I did try to use ?bargraph.CI for the >> colors. When I said bars,  I meant the main bars on the graph not the >> error bars. H

Re: [R] bargraph.ci - CI and color question.

2009-11-03 Thread Manuel Morales
On Tue, 2009-11-03 at 10:20 -0600, Michael Just wrote: > Hello, > > Thanks for the responses. Yes, I did try to use ?bargraph.CI for the > colors. When I said bars, I meant the main bars on the graph not the > error bars. However, this "col=c("color", "color")" is what I was > needed and while i

Re: [R] bargraph.ci - CI and color question.

2009-11-03 Thread Michael Just
Hello, Thanks for the responses. Yes, I did try to use ?bargraph.CI for the colors. When I said bars, I meant the main bars on the graph not the error bars. However, this "col=c("color", "color")" is what I was needed and while it didn't find in the ?bargraph.ci help, I suspect its a more funda

Re: [R] bargraph.ci - CI and color question.

2009-11-03 Thread Manuel Morales
On Tue, 2009-11-03 at 03:51 -0600, Michael Just wrote: > Hello, > When using bargraph.CI in package sciplot can the bars for each group > be different colors? How do I select the color for each group? With the option err.col bargraph.CI(dose, len, group = supp, data =ToothGrowth, err.col=c("gray

Re: [R] bargraph.ci - CI and color question.

2009-11-03 Thread David Winsemius
On Nov 3, 2009, at 4:51 AM, Michael Just wrote: Hello, When using bargraph.CI in package sciplot can the bars for each group be different colors? Yes. ?bargraph.CI How do I select the color for each group? Read the help page. Fifth argument down. When I use this instead of the default

[R] bargraph.ci - CI and color question.

2009-11-03 Thread Michael Just
Hello, When using bargraph.CI in package sciplot can the bars for each group be different colors? How do I select the color for each group? When I use this instead of the default (SD vs SE): bargraph.CI(x.factor = dose, response = len, data = ToothGrowth, ci.fun= function(x) c(me

Re: [R] bargraph.CI change se for sd

2009-03-22 Thread herwig
Thanks for the solution. And sorry about the not workable example (I actually edited the post a minute after posting it -too late I am afraid). > library(sciplot) > bargraph.CI(peptide, surface, group=adjunct,data = y) Error in eval(substitute(subset), envir = data) : object "y" not found

Re: [R] bargraph.CI change se for sd

2009-03-21 Thread David Winsemius
> library(sciplot) > bargraph.CI(peptide, surface, group=adjunct,data = y) Error in eval(substitute(subset), envir = data) : object "y" not found #groan, ... why can't people offer a workable example? > data(ToothGrowth) # se as default > bargraph.CI(x.factor = dose, response = len, data = To

Re: [R] bargraph.CI change se for sd

2009-03-21 Thread herwig
Sorry about forgetting that. Package "sciplot" Simple example code: This code plots the standard error on the bars; I would like to replace that by the standard deviation bargraph.CI(peptide, surface, group=adjunct,data = y) David Winsemius wrote: > > Package name? > Example code? > > --

Re: [R] bargraph.CI change se for sd

2009-03-21 Thread David Winsemius
Package name? Example code? -- On Mar 21, 2009, at 4:22 AM, herwig wrote: Hi there, I am a beginner. I would like to change the error bars in the bargraph.CI function from the default (se) to (sd). The help file says ci.fun= function(x) c(fun(x)-se(x), fun(x)+se(x)) Is there a simple way

[R] bargraph.CI change se for sd

2009-03-21 Thread herwig
Hi there, I am a beginner. I would like to change the error bars in the bargraph.CI function from the default (se) to (sd). The help file says ci.fun= function(x) c(fun(x)-se(x), fun(x)+se(x)) Is there a simple way of telling the function what (x) precisely is - I already define in in the of the