Re: [R] Error bars and CI

2015-06-18 Thread Mohan.Radhakrishnan
[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 groups having samples of size 1? If you are not grouping, then what is the point of trying to manufacture

Re: [R] Error bars and CI

2015-06-17 Thread Mohan.Radhakrishnan
, 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 could easily have

Re: [R] Error bars and CI

2015-06-17 Thread Mohan.Radhakrishnan
(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 Subject: RE: [R] Error bars and CI Your sample code is working

[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

Re: [R] error bars

2012-10-28 Thread Johnson, Franklin Theodore
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: r-help@R-project.org Subject: [R] error bars Hello

Re: [R] error bars

2012-10-26 Thread S Ellison
, 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. Previously, I was able to plot error bars on an xy scatter plot using the errbar

[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 =

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:

[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

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 when

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 ggplot2

2012-07-27 Thread ONKELINX, Thierry
-Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Adam Gabbert Verzonden: donderdag 26 juli 2012 19:50 Aan: r-help@r-project.org Onderwerp: Re: [R] Error Bars ggplot2 Hi Dennis, Part of my problem could be that I'm unsure how to nest

[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-factor(spd) #Place data

Re: [R] Error Bars ggplot2

2012-07-26 Thread John Kane
ON Canada -Original Message- From: adamjgabb...@gmail.com Sent: Thu, 26 Jul 2012 09:03:44 -0400 To: r-help@r-project.org Subject: [R] Error Bars ggplot2 Hello, I'm attempting to plot error bars side by side rather than stacked on top of each other with ggplot2. Here

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

Re: [R] error bars for a barchart

2012-05-02 Thread Beatriz De Francisco
://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-project.org Subject: Re: [R] error bars for a barchart

[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 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:

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

[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

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 annaharrisish...@hotmail.com 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

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 barleydataset: #No, i tried to add error bars using the following code: .. As Deepayan noted in #

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

[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 barleydataset: library(lattice) barley[[SD]] - 5 PLOT - barchart(data=barley, yield~variety|site, groups=year,origin=0, as.table=TRUE,

[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

[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 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

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 PM0

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 University

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... Thanks for

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 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 Felix Andrews
On 8 April 2010 06:03, Ivan Gregoretti ivang...@gmail.com 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

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Felix Andrews
On 20 February 2010 11:22, Sam Albers tonightstheni...@gmail.com 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 -

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

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

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 li...@revelle.net wrote: From: William Revelle li...@revelle.net Subject: Re: [R] error bars To: Iasonas Lamprianou lampria...@yahoo.com, r-help@r

[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

[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.speciesand 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 for

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

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-17 Thread Tim Smith
Thanks Mathieu and Jim, That worked! From: Jim Lemon j...@bitwrit.com.au Cc: r r-h...@stat.math.ethz.ch 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

[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 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

Re: [R] error bars

2009-02-19 Thread hadley wickham
On Thu, Feb 19, 2009 at 1:19 AM, jdeisenberg catc...@catcode.com 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

[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

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

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 second

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 is a

[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

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) ??

[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,...){

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