search for: errorbar

Displaying 20 results from an estimated 40 matches for "errorbar".

Did you mean: errorbars
2006 Mar 15
1
errorbars with xyplot
Hi everyone, I'm very new to R and I like to learn a lot... actually I have a little problem concerning errorbars with xyplot. My data look like run target hemi x 1 1 Nichts Links 0.0007743240 2 2 Nichts Links -0.0008153365 3 1 Target Links -0.0015825950 4 2 Target Links 0.0088743785 5 1 Nichts Rechts 0.0015898995 6 2 Nichts Rechts -0.0011465190 7 1 Target Rechts -0.00222...
2012 Sep 16
1
How to plot two lines, and only one line with errorbar by qqplots of R
Here is my code, which plots three lines with errorbar. How could I add an extra line without errorbar to the plot? Thank you very much. beta.data <- data.frame ( method = rep(c("Wrong", "Correct", "Full Bayes"), each = T_obs), mean.beta = c(mean.beta1, mean.beta2, mean.beta3), t = rep(points, 3), std.beta = c(std.bet...
2011 Jun 17
1
Errorbars
Hi, Does anyone know how i get rid of the marker point in my error bars? The bars default function (it seems) is to have a dot in the middle of the bar, however i don't want it there. I am using Hmis to draw my errorbars and code is a<-as.vector(tapply(Sporangia,list(Host,Isolate),mean)) b<-as.vector(tapply(Sporangia,list(Host,Isolate),sd)) c<-sqrt(b/36) errbar(c(1.5,2.5,3.5,5.5,6.5,7.5),(tapply(Sporangia,list(Host,Isolate),mean)),a+c,a-c,add=T) Cheers Anna [[alternative HTML version deleted]]
2011 Feb 17
2
barplot with errorbars
Dear all I have six variables of the average metal concentrations Var1 4.77 Var2 23.5 Var3 5.2 Var4 12.3 Var5 42.1 Var6 121.2 I want to plot them as a barplot with error bars. Could you help me? Cheers Maria [[alternative HTML version deleted]]
2007 Sep 28
1
errorbar il lattice plot
Hi Everyone, I would like to add errorbars to a lattice plot. I already have a function that adds error bars to a plot (originally written by George Gilchrist) which takes as arguments the coordinates of the point and then the size of the error bar. I would like to integrate it in my lattice code but I seem to be stumped. I can put the...
2011 Nov 15
2
break error bars in ggplot2
Hello, i use ggplot to plot some measures including CIs as horizontal errorbars. I get an error when the scale limits are narrower than the boundaries of the error bar and hence the CIs are not plotted. library(ggplot2) df <- data.frame(resp=c(1,2), k=c(1,2), se=c(1,2)) ggplot(df, aes(resp,y=k)) + geom_point() + geom_errorbarh(aes(xmax = resp + se, xmin = resp - se)) +...
2011 Jun 09
0
Help creating a scatterplot with errorbars using gplot
I am having a problem creating a scatterplot with error bars using gplot. This is only my second day using R so I am very much a newbie. My x-values (OD600) are: 0.00400000 0.01866667 0.04733333 0.08733333 0.22466667 0.42400000 0.82066667 1.39233333 1.61100000 My y-values (cellconc) are: 2e+06 5e+06 1e+07 2e+07 5e+07 1e+08 2e+08 5e+08 1e+09 And my standard deviations (stdev) are: 0.001154701
2014 Feb 18
2
Errorbar
Hi All, Can anyone show me how to add a error bar to my graphs. I am currently using this code g<-ggplot(means,aes(x=variable,y=value)) > g<-g+geom_bar(stat="identity")+facet_wrap(~Site+Season) > g Thanks, Akaalz [[alternative HTML version deleted]]
2013 Feb 03
1
ggplot2 plotting errorbars.
Hi, i'm using this lines of code: dodge <-position_dodge(width=0.9) ggplot(dfm,aes(x = X,y = value)) + geom_bar(aes(fill = variable), position=dodge, stat="identity") + geom_errorbar(aes(ymin=value-er, ymax=value+er),width=0.25, position=dodge,stat="identity") to plot this data frame X variable value er 1 A X4 58.74 9.44 2 B X4 52.41 10.01 3 C X4 95.52 4.88 4 A X1 75.51 8.54 5 B X1 0.73 23.20 6 C X1 96.66...
2011 Feb 17
3
ggplot2, 'se' variable in geom_errorbar's limits?
Dear R-list I'm working with with geom_errorbar; specifically I'm trying to reproduce the example Hadley Wickham have on http://had.co.nz/ggplot2/geom_errorbar.html (all in the button of the page) where he makes an nice plot with errorbars and then draw lines between the points. What confuses me is the 'limits' he defines for the er...
2002 Oct 06
6
error bars in line plots
Hi! Could you tell me how I can draw a graph with error bars? Sorry, I don't use R that often and I couldn't find it easily in the documentation. TIA -- myriam -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info",
2005 Apr 21
3
Need help with R date handling and barchart with errorbars
...I later want to plot the data using barchart eg (barchart(date ~ mean | dataset, data=testdata);) in which case will the dates appear in assending order of dates or something special needs to be done for that. 3. Also I'll really appreciate if anyone can tell me if there's a way to get stdErrorBars on charts that are drawn using barchart function in lattice package. Any help or advise is greatly appreciated... Thanks, Sandeep. [[alternative HTML version deleted]]
2013 Apr 30
1
Stacked geom_bar with aggregated SE -ggplot2
Hi there,? I've been battling with an extension of this in my own data: getting appropriate error bars once data is stacked in a bar graph.? (original question: http://r.789695.n4.nabble.com/ggplot2-se-variable-in-geom-errorbar-s-limits- td3311176.html). It wouldn't let me reply to that thread. A modification of the earlier answer:? data(diamonds)? ?diamonds_df <- ddply(diamonds, .(cut, color), summarise,? ? ? ? ? ? ? ? ? ? ? ? ? mean_price = mean(price),? ? ? ? ? ? ? ? ? ? ? ? ? se_price = sd(price)/sqrt(length(...
2004 Feb 08
2
parsing numbers from a string
Dear R-help members, I have several large data sets from certain simulations I did and now I want to plot the results nicely. I don't know anything about the size of the x and y values in advance. Plotting these values is not a problem. However, I want to add errorbars (errbar in the Hmisc package). 1) For this I'm factoring the data (xdata00 varies from 0 to max(xdata00)) xfactor00 = factor(cut(xdata00, breaks = (max(xdata00)/10)*(0:100))) 2) I compute the means of the different levels ymeans00 = tapply(ydata00, xfactor00, mean) 3) I compute the errors...
2007 Aug 19
1
Error bars using data from bugs()
I'm trying to compare the results of several models using output from bugs(). I want to summarize the models via boxplots or lineplots of the parameters. I know how to use errorbars from a regression, but how do I implement the credible intervals as error bars into these plots Any help is much appreciated Matthew Krachey [[alternative HTML version deleted]]
2007 Oct 13
1
geom_errorbar with ggplot2
...used, as well as the data. ================================================================ DFrame<-data.frame(x=1:10,y=0.5*(1:10),Upper=(1:10)+0.5, Lower=(1:10)-0.5) p <- ggplot() l1<-layer(data=DFrame, mapping=aes_string(x='x',min='Lower', max='Upper'), geom='errorbar', stat='identity') p<-p + l1 + scale_y_continuous() p ======================================== I wonder if anyone can help me with this. Best, Pedro de Barros
2010 Apr 06
1
Error bar
...ere, Using the code below I generated the plot attached. The error bars at day = -3, 2 and 4 appear are larger. I was thinking if there is a way I could make all the error bars to be of the same size. I don't know if that makes sense. If not, then, is there a way I can plot only these 3 largest errorbars at day axis (day = -3, 2 and 4) and omit the rest of the error bars. I would be much obliged for any help Warmest Ogbos temp<-split(y,x) means<-sapply(temp,mean) stderr<-function(x)sqrt(var(x)/length(x)) p<-sapply(temp,stderr) n<-sapply(temp,length) ciw<-qt(0.975,n)*p/sqrt(n...
2010 Dec 13
1
ggplot2 errorbarh
Hi, I'm having problems using the 'width' aesthetic attribute for the geom_errorbarh. This is the same problem reported earlier here, but I'll try to write the problem more clearly: http://www.mail-archive.com/r-help@r-project.org/msg62371.html The problem I'm having is that, the 'width' attribute is supposed to set the height of the endpoints of the whiskers,...
2010 Nov 23
1
Barplot and plot means with confidence intervals in the same plot
I want to obtain a barplot with error bars and a mean plot with error bars with other scale on the left in the same plot. I need help to get the same x axis (centered) when overlay two plots (barplot2 and plotCI (or lineplot.CI) with errorbars), with diferent y axis. I use par (new=T) but the X axis names are not centered with the figures. An example of my data: mean1<-cbind(55.5,56.42,56.38,55.28) SD1<-cbind(10,9 ,7 ,3) x<-rbind(mean1,SD1) colnames(x)<-c("Autumn","Spring","Summer",&quot...
2013 Feb 15
1
Why no line? (ex. from Andy Filed book)
...line <- ggplot(hiccups, aes(Intervention_Factor, Hiccups)) line + stat_summary(fun.y = mean, geom = "point") + stat_summary(fun.y = mean, geom = "line", aes(group=1),colour = "Red", linetype = "dashed")+ stat_summary(fun.data = mean_cl_boot, geom = "errorbar", width = 0.2) + labs(x = "Intervention", y = "Mean Number of Hiccups") saveInImageDirectory("04 Hiccups Line.png") Why does this script not give me a line? It's driving e crazy :-| [[alternative HTML version deleted]]