Displaying 20 results from an estimated 1000 matches similar to: "break error bars in ggplot2"
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, and
2009 Jul 09
1
ggplot2: geom_errorbarh()
Hi all,
quick question: is the optional command "width" effective in the
geom_errorbarh() layer of ggplot?
Cause I can't get it works on this graph
http://www.4shared.com/file/116919103/93488d88/iso_2PrsH.html
pdf(file = "iso_2PrsH.pdf", width = 7, height = 7)
NC60.iso.graph<-ggplot(
NC60.DATA
,aes(Ce,Qe)) +
geom_point(col=MaCouleur1, size=4) +
2008 May 12
1
Converting qqplot2 qplot() to grammar?
Hello all,
I've been using the following qplot command:
qplot(pixX,pixY, data=som, geom="tile", fill=rgb) +
scale_fill_identity() + opts(aspect.ratio = .75) + facet_grid(unitX ~ unitY)
Now I would like to convert it into the explicit ggplot grammar, so I
can remove the extras: axes, labels, background, borders, facet labels,
and extra white-space around the plot. (If anyone has
2013 May 18
3
bar plot with non-zero starting level
Hi,
I want to plot grouped bars to compare 95% confidence interval estimates
from two models. Each bar represents a 95% confidence interval estimate
of a coefficient from one of the two models. Each group represents
confidence interval estimates of the same coefficient from the two models.
I think such a bar plot will nicely present whether 95% confidence
interval estimates of the same
2013 Jan 24
1
Insert segment only on particular facets in ggplot
Dear R users,
I am working on a data-set with 3 species. They are apple, orange and
banana.
I want to annotate the facets only on the bottom panel. However, by default
I am getting annotations on all the plots. I was able to get text
annotation only on the desired plot. However, I am confused what I need to
do for the arrows / segments.
Here is my code:
library(ggplot2)
library(grid)
tempobs
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
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.beta1, std.beta2, std.beta3)
)
limits =
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 errorbars from the
se variable.
First he creates
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]]
2017 Aug 05
2
Nested for loop
Hi! Thanks for taking the time to read this.
The code below creates a graph that takes 100 samples that are between 5%
and 15% of the population (400).
What I'd like to do, however, is add two other sections to the graph. It
would look something like this:
from 1-100 samples take 100 samples that are between 5% and 15% of the
population (400). From 101-200 take 100 samples that are between
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)
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",
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 =
2010 Apr 19
2
plotting RR, 95% CI as table and figure in same plot
Hi all--
I am in the process of helping colleagues write up a ms in which we fit
zero-inflated Poisson models. I would prefer plotting the rate ratios
and 95% CI (as I've found Gelman and others convincing about plotting
tables...), but our journals usually like the numbers themselves.
Thus, I'm looking at a recent JAMA article in which both numbers and
dotplot of RR and 95% CI are
2010 Apr 06
1
Error bar
Hi there,
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
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:
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 error bar function inside my code as if it were a panel
2017 Aug 06
0
Nested for loop
Hi Kirsten,
I can run your example code but I can't quite follow your division of sampling. Can you restate the the task? Below is what I think you are asking for, but I have the feeling I may be off the mark.
Set A: 400 samples, draw 100 in range of 5 to 15
Set B: 800 samples, draw 100 in range of 5 to 15
Set C: 300 samples, draw 100 in range of 5 to 15
Ben
> On Aug 5, 2017, at
2023 Aug 02
2
Choosing colours for lines in ggplot2
Hello - I am trying to plot flows in a number of rivers within the same
plot, and need to colour the lines differently, using a colour-blind
palette.
Code beneath works but has colours assigned by the program I have made some
simple dummy data:
## code 1
cb8<- c("#000000", "#E69F00", "#56B4E9", "#009E73","#F0E442", "#0072B2",
2009 Apr 25
2
Changing gird marks in ggplot2
Hi,
When I zoom into a graph created in ggplot2 with the
coord_cartesian(ylim=c(0,5)) option, I have no values labelled on my y-axis.
For this graph ggplot2 only puts labels the y-axis at intervals of 10 (i.e.
0, 10, 20, ...). However, the major portion of the graph I am interested in
is located between the values of 0 and 5 on the y-axis (thus why I am
zoooming). How can I coerce ggplot2 into