Displaying 20 results from an estimated 8000 matches similar to: "barplot(2?) with CI from a zero reference line"
2004 Nov 21
3
Help with ooplot(gplots) and error bars
Dear All
I am trying to graph a proportion and CI95% by a factor with ooplot (any
other better solution ?)
It works well until I try to add the confidence interval.
this is the error message and and a description of the data:
> dat1
PointEst
TT1 1 3.6
TT2 2 5.0
TT3 3 5.8
TT4 4 11.5
TT5 5 7.5
TT5 6 8.7
TT7 7 17.4
> dat2
2005 Apr 14
3
Wrapping long labels in barplot(2)
I am using barplot, and barplot2 in the gregmisc bundle, in the
following way:
barplot2(sort(xtabs(expend / 1000 ~ theme)),
col = c(mdg7, mdg8, mdg3, mdg1), horiz = T, las = 1,
xlab = "$ '000", plot.grid = T)
The problem is that the values of 'theme', which is a factor, are in
some cases rather long, so that I would like to wrap/split them at a
space once they
2007 Mar 01
2
barplot2, gap.barplot
Hello,
I try to handle a simple bar-plot, but it turns out to be not as simple
as I thought.
1) I have created a .dat-File, e.g. test.dat:
DATA DATA-SEM
2.2 0.32
6.2 1.30
12.7 1.61
48.6 3.08
4.1 0.86
4.5 0.32
1.5 1.13
1.2 1.08
The first row is the data represented by bars. The second row deals with
the Standard Error of Mean. The lines correspond to time-intervals of
experiments.
2) I now
2004 Nov 24
1
reshaping of data for barplot2
Dear All,
I have the following data coming out from
s <- with(final,
summarize(norm, llist(gtt,fdiab),
function(norm) {
n <- sum(!is.na(norm))
s <- sum(norm, na.rm=T)
binconf(s, n)
}, type='matrix')
)
ie
gtt fdiab norm.norm norm.norm2 norm.norm3
18
2012 Nov 08
2
How to include CI in a grouped barplot?
Hello everyone!
I need to include the confidence interval bar in a grouped barplot. I've
found some options on the web, but none of them solved my problem.
The question is: my barplot was created using vectors for each pair of bar
and them combining them using cbind.
I mean:
a=c(10,15)
b=c(20,24)
c=c(21,23) ...
hei=cbind(a,b,c)
graph1=barplot(hei, beside=T,...)
I've tried to include
2005 Jul 08
1
Overlying a Normal Dist in a Barplot
R-Users,
Hopefully someone can shed some light on these questions as I had
little luck searching the archives (although I probably missed something
in my search due to the search phrase). I estimated multinomial
probabilities for some count data (number successful offspring) ranging
from 0 to 8 (9 possible response categories). I constructed a barplot
(using barplot2) and I want to
2007 Sep 12
2
barplot border width
I need to increase the width of the border in a barplot, i checked both
barplot, and barplot2, but cant find how to do it. how can I do?
thank you
john
[[alternative HTML version deleted]]
2005 Jun 04
1
barplot and missing values?
I want to include missing values in my barplot to get the correct x-axis,
for example,
x <- c(1,2,3,4, 9)
y <- c(2,4,6,8,18)
barplot(y)
The above looks wrong because the last height in y should be a long way
over.
So I want to do something like...
x <- c(1,2,3,4,5,6,7,8, 9)
y <- c(2,4,6,8,0,0,0,0,18)
barplot(y)
However...
I am actually using barplot2 to use the
2005 Apr 12
1
Cumulative Points and Confidence Interval Manipulation in barplot2
R-Users,
I am working with gplots (in gregmisc bundle) plotting some posterior
probabilities (using barplot2) of harvest bag limits for discrete data
(x-axis from 0 to 12, data is counts) and I ran into a couple of
questions whose solutions have evaded me.
1) When I create and include the confidence intervals, the lower bound
of the confidence intervals for several of the posterior probabilities
2009 Nov 26
1
Barplot with confidence intervals
I have a file in the following format:
Scenario1 Scenario1CIL Scenario1CIU Scenario2 Scenario2CIL Scenario2CIU
60 57 62 45 48 50
110 101 111 51 50 52
120 117 122 64 62 66
192 190 194 79 75 79
where:
First column = Scenario1 mean value
Second column = Scenario1 Low Confidence Interval
Third column = Scenario1 Upper Confidence Interval
Fourth column = Scenario2 mean value
Fifth column =
2006 Mar 08
1
Adding polygons to a barplot
I have a barplot I have created using barplot2 and I have been able to
add points and lines (using the points and lines methods,
respectively). I now need to add some polygons (triangles in
particular), that I want to be shaded to match bars in the plot. I
can get the coordinates of the corners of the triangles, but don't
know how to draw the triangles. I know there is the grid.polygon
2005 Jun 30
1
Graphically centering confidence interval in barplot
Hello,
I have got a simple "cosmetic" question.
I have created a bar plot with confidence intervals using:
barplot(mean, ylim = c(0,0.2), las = 3, space = 0)
arrows(1:17 ,X95p_low, 1:17, X95p_high, length = 0.07, angle = 90, code
= 3, lty = 1)
Unfortunately, the confidence bars align with the right side of the bars
and I would like to shift these to the middle of the bars.
Is
2002 Sep 19
0
Barplot() with log axis scaling and other features
To all,
Recently I created a version of barplot() to include some new features
as follows:
1. Plot confidence intervals for each bar: The user can pass lower
(ci.l) and upper (ci.u) bounds in the same vector/matrix format as
"height". The CI boundary lines will vary in width per bar, if a
varying "width" argument is specified. CI line width, type and color can
be
2005 Jun 09
1
color on barplot
Hello,
On my barplot, I have on the axis y, the names of the rows of my matrix r_mat!
is it possible to change the color of these names on my barplot?
barplot2(t(r_mat),beside=TRUE,horiz=TRUE,plot.grid=TRUE,xlab="R",font.lab=4,las=2,xlim=c(0,1))
thanks,
Sabine
---------------------------------
[[alternative HTML version deleted]]
2008 Sep 15
1
modifying this barplot
Here is an example barplot that needs some tweaking:
library(gplots)
ratios <- data.frame(c(0.05,0.10,0.9),c(0.06,0.15,0.76))
rownames(ratios) <- c("T1","T2","T3")
colnames(ratios) <- c("A1","A2")
ratios <- as.matrix(ratios)
myplot <- barplot2(ratios, beside = TRUE,col = c("blue",
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:
2003 Apr 16
2
barplot2
Hello,
I get a nice looking barplot using the barplot2 function in the gregmisc
package:
body2 <- barplot2(hh3, beside = TRUE,
col = c("mistyrose", "lightcyan"),
....
cex.names = 1.0, plot.ci = TRUE, ci.l = cil, ci.u = ciu,
plot.grid = TRUE)
box()
However, obviously I lose the collors when converting from ps to a pdf
(outside of R)
2007 Oct 31
2
ylim in barplot2 function?
Hi list,
I'm using barplot2 form the gplots package to plot a few numbers (I want to add SD bars later).
However, I would like the y-axis not to start from 0 but 500. When I add the parameters YLIM, something goes wrong. The graph is not 'cut off' at 500. Instead the bars seems to sink trough the bottom of the graph.
Because its a little hard to explain, here is a self-containing
2006 Mar 01
1
Width of bars in barplot2
I'm using barplot2 to plot some data. Is there any way to determine
the width of the bars in the generated plot? I know that barplot2
returns a list of the coordinates of the center of each bar, but since
there is some white space between each bar, I don't know how to get
the width of each bar.
Jamie
2009 Sep 15
2
Viewing Function Code
Hi All,
I'd like to see the function code behind the barplots2() function in the
gplots package, however i come across a bit of a stumbling block of a hidden
function, can anyone help?
> library(gplots)
> methods(barplot2)
[1] barplot2.default*
Non-visible functions are asterisked
> barplot2
function (height, ...)
UseMethod("barplot2")
<environment: