Re: [R] Error bars and CI

2015-06-18 Thread Mohan.Radhakrishnan
Collections")+theme_bw() Thanks, Mohan -Original Message- From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Wednesday, June 17, 2015 8:42 PM To: Radhakrishnan, Mohan (Cognizant) Subject: Re: [R] Error bars and CI Q: How do you expect to get error bars when you plot "group

Re: [R] Error bars and CI

2015-06-17 Thread Mohan.Radhakrishnan
geom="line") p <- p + stat_summary(fun.data=mean_cl_normal,conf.int = .99, geom="errorbar", width=0.2) Thanks, Mohan -Original Message- From: Radhakrishnan, Mohan (Cognizant) Sent: Wednesday, June 17, 2015 12:54 PM To: 'Dennis Murphy' Cc: r-help@r-project.org Sub

Re: [R] Error bars and CI

2015-06-17 Thread Mohan.Radhakrishnan
hakrishnan, Mohan (Cognizant) Subject: Re: [R] Error bars and CI Hi: Firstly, your dplyr code to generate the summary data frame is unnecessary and distracting, particularly since you didn't provide the input data set; you are asked to provide a *minimal* reproducible example, which you co

[R] Error bars and CI

2015-06-15 Thread Mohan.Radhakrishnan
Hi, I want to plot a line graph using this data. IDX is x-axis and V1 is y-axis. I also want standard error bars and 99% CI to be shown. My code is given below. The section that plots the graph is the problem. I don't see all the points in the line graph with error bars. How can I also show t

Re: [R] error bars

2012-10-28 Thread Johnson, Franklin Theodore
ng for; you'll have to go back to your code to see which library it used to load. S Ellison > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Johnson, > Franklin Theodore > Sent: 25 October 2012 22:46 > To

Re: [R] error bars

2012-10-26 Thread S Ellison
rg] On Behalf Of Johnson, > Franklin Theodore > Sent: 25 October 2012 22:46 > To: r-help@R-project.org > Subject: [R] error bars > > Hello R-help, > > > > I am using R version 2.15.1. > > I upgraded from R version 2.13 a few months back. > > >

Re: [R] error bars

2012-10-25 Thread David Winsemius
On Oct 25, 2012, at 2:45 PM, Johnson, Franklin Theodore wrote: > Hello R-help, > > > > I am using R version 2.15.1. > > I upgraded from R version 2.13 a few months back. > > > > Previously, I was able to plot error bars on an xy scatter plot using the > errbar function: > > errbar(RAEthy

[R] error bars

2012-10-25 Thread Johnson, Franklin Theodore
Hello R-help, I am using R version 2.15.1. I upgraded from R version 2.13 a few months back. Previously, I was able to plot error bars on an xy scatter plot using the errbar function: errbar(RAEthylene$TIME,RAEthylene$AVE,RAEthylene$AVE+RAEthylene$STD,RAEthylene$AVE-RAEthylene$STD,add = T

Re: [R] error bars on line plot with error bars using ggplot

2012-10-03 Thread S Ellison
> I'm new to this and struggling away with ggplot. I need to > plot some line graphs for about 4 series. I have the values > to plot and also the value of the standard error of the > value. Is it possible to plot the standard error bars when > the value are already calculated as opposed to

Re: [R] error bars on line plot with error bars using ggplot

2012-10-03 Thread David Winsemius
On Oct 3, 2012, at 6:41 AM, James Maas (MED) wrote: > I'm new to this and struggling away with ggplot. I need to plot some line > graphs for about 4 series. I have the values to plot and also the value of > the standard error of the value. Is it possible to plot the standard error > bars w

[R] error bars on line plot with error bars using ggplot

2012-10-03 Thread James Maas (MED)
I'm new to this and struggling away with ggplot. I need to plot some line graphs for about 4 series. I have the values to plot and also the value of the standard error of the value. Is it possible to plot the standard error bars when the value are already calculated as opposed to letting R d

Re: [R] Error Bars ggplot2

2012-07-27 Thread ONKELINX, Thierry
is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Na

Re: [R] Error Bars ggplot2

2012-07-26 Thread Adam Gabbert
Hi Dennis, Part of my problem could be that I'm unsure how to nest another variable withn spd.f. Perhaps if I give a better explanation of my goal things will make more sense. My intent is to calculate two sets of confidence intervals to show the benefits of a DOE approach versus a Non-DOE appro

Re: [R] Error Bars ggplot2

2012-07-26 Thread John Kane
.1,2.2,5)) myplot<-ggplot(dat1, aes(spd, r, colour = spd)) + geom_errorbar(aes(ymin=3, ymax=5), width=.1) + geom_point() + coord_flip() John Kane Kingston ON Canada > -Original Message- > From: adamjgabb...@gmail.com > Sent: Thu, 26 Jul 2012 09:03:44 -0400 > To: r-help@r-project.

[R] Error Bars ggplot2

2012-07-26 Thread Adam Gabbert
Hello, I'm attempting to plot error bars side by side rather than stacked on top of each other with ggplot2. Here is the sample code I am using: #Code #Data spd<-c("s","f","f","s","f","s","s","s","f","f","s","f") r<-c(4.9,3.2,2.1,.2,3.8,6.4,7.5,1.7,3.4,4.1,2.2,5) #Turn spd into a factor spd.f<

Re: [R] error bars for a barchart

2012-05-02 Thread Beatriz De Francisco
chboard) Fax: 01631559001 E. beatriz.defranci...@sams.ac.uk http://www.smi.ac.uk/beatriz-de-franciso From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] on behalf of ilai [ke...@math.montana.edu] Sent: 02 May 2012 04:14 To: Walmes Zeviani Cc: r-help@r-

Re: [R] error bars for a barchart

2012-05-01 Thread ilai
Thank you for your example. I only skimmed it, but since both solutions use nlevels and box.ratio it is no surprise we end up at the same place (although I do think your g-median is nicer than my 3/4). Thing is, I wouldn't call either of these "simple"... would be nice if one could just query the

Re: [R] error bars for a barchart

2012-05-01 Thread Walmes Zeviani
I have a repoducibe example here http://ridiculas.wordpress.com/2011/11/23/media-e-desvio-padrao-de-muitas-variaveis-separado-por-grupos/ Sorry for it be in Portuguese. Walmes. == Walmes Marques Zeviani LEG (Laboratório de

Re: [R] error bars for a barchart

2012-05-01 Thread ilai
Hi, I think the issue is not "respecting the groups" but finding the x-location of the center of bars in panel.barchart(groups,...). Don't know about the memisc package, but doesn't look like it provides an easy solution. This is how I do it: http://www.mail-archive.com/r-help@r-project.org/msg1622

[R] error bars for a barchart

2012-05-01 Thread Beatriz De Francisco
Hi I have the following barchart to which I want to add error bars. library(lattice) barchart(Change~fTreat,groups=Process,change, auto.key=list(points=FALSE,rectangles=TRUE), panel=function(x, y,...){ panel.barchart(x,y,origin = 0,...);

[R] error bars for a barchart

2012-05-01 Thread Beatriz De Francisco
Hi I have the following barchart to which I want to add error bars. library(lattice) barchart(Change~fTreat,groups=Process,change, auto.key=list(points=FALSE,rectangles=TRUE), panel=function(x, y,...){ panel.barchart(x,y,origin = 0,...);

Re: [R] Error bars

2011-06-15 Thread Savitri N Appana
You might try 'bargraph.CI' in R pkg 'sciplot'. ?bargraph.CI HTH, Savi >>> Anna Harris 6/15/2011 1:00 PM >>> Hi, Can anyone help with plotting vertical error bars on a bar graph. I have tried following examples online and in the big R book and writing my own function but I have been unsucc

[R] Error bars

2011-06-15 Thread Anna Harris
Hi, Can anyone help with plotting vertical error bars on a bar graph. I have tried following examples online and in the big R book and writing my own function but I have been unsuccessful and don’t really have an understanding of what it is I am doing. I have calculated my standard errors s

Re: [R] Error bars in lattice barchart with groups

2010-12-01 Thread Dieter Menne
This is an interesting discussion on barchart (without error bars) http://www.decisionsciencenews.com/2010/08/11/which-chart-is-better/ Dieter -- View this message in context: http://r.789695.n4.nabble.com/Error-bars-in-lattice-barchart-with-groups-tp3065864p3066860.html Sent from the R help

Re: [R] Error bars in lattice barchart with groups

2010-12-01 Thread Dieter Menne
Henning Wildhagen wrote: > > > i want to plot gene regulation data in a lattice barchart. To illustrate > the problem i encounter, the following code uses the "barley"dataset: > > > #No, i tried to add error bars using the following code: > .. > As Deepayan noted in # http://markmail.

[R] Error bars in lattice barchart with groups

2010-11-30 Thread Henning Wildhagen
Dear R-users, i want to plot gene regulation data in a lattice barchart. To illustrate the problem i encounter, the following code uses the "barley"dataset: library(lattice) barley[["SD"]] <- 5 PLOT <- barchart(data=barley, yield~variety|site, groups=year,origin=0, as.table=TRUE, scales=list(

[R] error bars in lattice barchart

2010-11-10 Thread zhenjiang xu
Hi all, I've read the emails of Dan, Deepayan and Sundar about adding error bars to the lattice plots ( https://stat.ethz.ch/pipermail/r-help/2006-October/114883.html), but I still have the problem when I want to adding error bars to barchart. I tried both the solution of Deepayan and Sundar but w

Re: [R] Error Bars in lattice- barcharts

2010-04-09 Thread Sam Albers
> > Well, when the error message says "argument 'lx' is missing, with no > default", it really means that argument 'lx' is missing, with no > default. Your panel function has an argument 'lx', which you forgot to > change to 'ly' as you did with the prepanel function. > > Hope that helps... > > Tha

Re: [R] error bars on barplot

2010-04-09 Thread hadley wickham
> bar.err (agricolae) > plotCI (gplots) > xYplot (Hmisc) > error.bars (psych) > dispersion (plotrix) > plotCI (plotrix) > Not to mention: http://biostat.mc.vanderbilt.edu/wiki/Main/DynamitePlots Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice Univers

Re: [R] error bars on barplot

2010-04-09 Thread Johannes Graumann
Jim Lemon wrote: > On 04/09/2010 08:55 PM, Samantha Reynolds wrote: >> Hi >> >> I was hoping someone might be able to help me I have this data: >> >> birdid timetaken numvisits ptachchoice time bold >> 1087 810 1 AM0 >> 108728 6 1

Re: [R] error bars on barplot

2010-04-09 Thread Jim Lemon
On 04/09/2010 08:55 PM, Samantha Reynolds wrote: Hi I was hoping someone might be able to help me I have this data: birdid timetaken numvisits ptachchoice time bold 1087 810 1 AM0 108728 6 1 PM0 108713 3

[R] error bars on barplot

2010-04-09 Thread Samantha Reynolds
Hi I was hoping someone might be able to help me I have this data: birdid timetaken numvisits ptachchoice time bold 1087 810 1 AM0 108728 6 1 PM0 108713 3 2 AM0 1087 121 0

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Felix Andrews
On 20 February 2010 11:22, Sam Albers wrote: > #I've tried to alter the panel function according to the thread to produce > vertical error bars in my barcharts > > prepanel.ci <- function(x, y, ly, uy, subscripts, ...) { > >        y <- as.numeric(y) >        ly <- as.numeric(ly[subscripts]) >  

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Felix Andrews
On 8 April 2010 06:03, Ivan Gregoretti wrote: > Hi Sam and everybody, > > Can you educate me a little bit on the use of barchart? > > A command like this > > barchart(~table(someProperty), data=A) > > produces a barchart with horizontal bars. That should be barchart(table(someProperty), data=A)

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Sam Albers
Hi Ivan, Can you educate me a little bit on the use of barchart? > Unfortunately no... For this post I eventually used the barplot2() in the gplots packages. I got bogged down trying to do it in lattice so I looked for an alternative. It was quite straight forward which was nice and I was able to

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Ivan Gregoretti
Hi Sam and everybody, Can you educate me a little bit on the use of barchart? A command like this barchart(~table(someProperty), data=A) produces a barchart with horizontal bars. I want to produce that graph but with VERTICAL bars. clearly, horizontal=FALSE does not work. Thank you, Ivan

Re: [R] error bars

2010-03-30 Thread Iasonas Lamprianou
of Manchester Oxford Road, Manchester M13 9PL, UK Tel. 0044 161 275 3485 iasonas.lampria...@manchester.ac.uk --- On Tue, 30/3/10, William Revelle wrote: > From: William Revelle > Subject: Re: [R] error bars > To: "Iasonas Lamprianou" , r-help@r-project.org > Date: Tuesday,

Re: [R] error bars

2010-03-30 Thread William Revelle
Iasonas, In response to PS.1 try error.bars in the psych package. Bill At 1:04 AM -0700 3/30/10, Iasonas Lamprianou wrote: Dear friends, I have a statistical question. Sometimes, if I compare boys to girls on a specific variable, the error bars (confidence interval of means) seem to overla

Re: [R] error bars

2010-03-30 Thread Markus Schmotz
you can write a function for yourself using arrows: #x,y: dataset as vectors #xe,ye: errors per entry as vectors, if the errors are symmetric arrbar<-function(x,y,xe,ye){ l<-length(x) for (i in 1:l) { arrows(x[i],y[i],x[i]-xe[i]/2,y[i],angle=90,length=0.05)

Re: [R] error bars

2010-03-30 Thread Iasonas Lamprianou
Dear friends, I have a statistical question. Sometimes, if I compare boys to girls on a specific variable, the error bars (confidence interval of means) seem to overlap slightly. Still, when I run a t-test, I find statistically significant differences. The rule is clear: if the confidence interv

[R] Error Bars in lattice- barcharts

2010-02-19 Thread Sam Albers
Hello, I am attempting to write a script that adds error bars to a barchart. I basing my attempt heavily on the following thread: http://tolstoy.newcastle.edu.au/R/e2/help/06/10/2791.html I can't seem to get around the problem that was discussed in the thread. The following example should illust

Re: [R] Error bars on barplots for only particular bars

2010-01-14 Thread Jim Lemon
On 01/15/2010 08:43 AM, kellys17 wrote: Hi, I have a data set that has columns "bird.species", "tree.species"and "count". I am investigating differences in tree species usge by two species of birds. "Count" is numerical and is a count of observations of bird species x using tree species x. F

[R] Error bars on barplots for only particular bars

2010-01-14 Thread kellys17
Hi, I have a data set that has columns "bird.species", "tree.species"and "count". I am investigating differences in tree species usge by two species of birds. "Count" is numerical and is a count of observations of bird species x using tree species x. For bird species A I have 3 different counts

Re: [R] error bars in matplot

2009-04-17 Thread Tim Smith
Thanks Mathieu and Jim, That worked! From: Jim Lemon Cc: r Sent: Friday, April 17, 2009 7:45:39 AM Subject: Re: [R] error bars in matplot Tim Smith wrote: > Hi, > > I was trying to get error bars in my matplot. I looked at an earlier thread,

Re: [R] error bars in matplot

2009-04-17 Thread Jim Lemon
Tim Smith wrote: Hi, I was trying to get error bars in my matplot. I looked at an earlier thread, and the sample code that I made is: #-- library(plotrix) mat1 <- matrix(sample(1:30,10),nrow=5,ncol=2) ses <- matrix(sample(1:3,10,replace=T),nrow=5,ncol=2) vect <- seq(20,100,20)

Re: [R] error bars in matplot

2009-04-16 Thread Matthieu Dubois
Hi Tim, there are a couple of problems in your example. (1) The most important is that your 'x' values for the matplot are 1:5 (that is row numbers of your mat1 matrix) and are seq(20,100,20) (that is, your vect vector) for your error bars. Error bars are thus plotted outside the plotting are

[R] error bars in matplot

2009-04-16 Thread Tim Smith
Hi, I was trying to get error bars in my matplot. I looked at an earlier thread, and the sample code that I made is: #-- library(plotrix) mat1 <- matrix(sample(1:30,10),nrow=5,ncol=2) ses <- matrix(sample(1:3,10,replace=T),nrow=5,ncol=2) vect <- seq(20,100,20) rownames(mat1) <-

Re: [R] error bars

2009-02-19 Thread hadley wickham
On Thu, Feb 19, 2009 at 1:19 AM, jdeisenberg wrote: > > > Nicole Hackman wrote: >> >> Hello, I have a very simple data set i imported from excel including 96 >> averages in a column along with 96 standard errors associated with those >> averages (calculated in excel). I plotted the 95 averages us

Re: [R] error bars

2009-02-18 Thread jdeisenberg
Nicole Hackman wrote: > > Hello, I have a very simple data set i imported from excel including 96 > averages in a column along with 96 standard errors associated with those > averages (calculated in excel). I plotted the 95 averages using r and I > am > wondering if it is possible to plot the s

Re: [R] error bars

2009-02-18 Thread Mike Lawrence
Check out ggplot2: http://had.co.nz/ggplot2/ Particularly: http://had.co.nz/ggplot2/geom_errorbar.html If you need more help you'll have to provide a self-contained set of data/code. Hopefully you'll soon be completely rid of this strange "excel" of which you speak :Op On Wed, Feb 18, 2009 at 9

[R] error bars

2009-02-18 Thread Nicole Hackman
Hello, I have a very simple data set i imported from excel including 96 averages in a column along with 96 standard errors associated with those averages (calculated in excel). I plotted the 95 averages using r and I am wondering if it is possible to plot the second column of standard errors while

Re: [R] error bars

2008-12-22 Thread Gavin Simpson
On Fri, 2008-12-19 at 13:06 +, Kelly-Gerreyn B.A. wrote: > Dear Help > > I'm new to R (from matlab)...using windows XP. > > I've tried to work out, to no avail, 4 things: > > 1) rotating the numbers on axes...something to do with par(str) ?? ?par and argument 'las' for basic control. There

Re: [R] error bars

2008-12-20 Thread Sarah Goslee
Hi, These are rather basic; I'd strongly suggest that you at least read An Intro to R, and maybe some of the other excellent beginner materials available. The answers are also easily available through Google, or RSiteSearch. > 1) rotating the numbers on axes...something to do with par(str) ?? Th

[R] error bars

2008-12-20 Thread Kelly-Gerreyn B.A.
Dear Help I'm new to R (from matlab)...using windows XP. I've tried to work out, to no avail, 4 things: 1) rotating the numbers on axes...something to do with par(str) ?? 2) how to close a window having opened one e.g. windows(7,7) 3) how to manipulate the key (e.g. dots, lines etc) on the leg

[R] Error bars within xyplot, panel = function(x,y, ....)

2008-06-16 Thread David Afshartous
All, I'm trying to adapt some code provided by Deepayan Sarkar from a previous thread (https://stat.ethz.ch/pipermail/r-help/2005-October/081571.html) on this topic. ## This code produces a graph w/o error bars: xyplot(Y ~ Hr, data, groups=DRUG, panel=function(x,y,...){ panel.x

Re: [R] Error bars using data from bugs()

2007-10-26 Thread toby909
only one out of many many dt = cbind(sim$mean$u2+sim$mean$beta1,sim$sd$u2) dt = dt[order(dt[,1]),] bounds = cbind(c(dt[,1]-1.96*dt[,2],dt[,1]+1.96*dt[,2],dt[,1]),rep(1:length(sim$mean$u2),3)) bounds = bounds[order(bounds[,2]),] plot(bounds) T Matthew Krachey wrote: > I'm trying to compare the