Displaying 20 results from an estimated 800 matches similar to: "barplot2, gap.barplot"
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
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)
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
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
2005 May 31
2
Barplot2 Title
Hello,
I would like to know if it's possible to modify the name of groups of bar because on my barplot2, I have 5 groups of bars and one of them is called "User Contributes" and when I save the plot "User contributes" is to big so I don't have it on my plot! Is it pssible to put the name vertically!
Thanks!
Sabine
---------------------------------
ils, photos
2007 Aug 30
1
Barplot2 using for loop, how to adjust margins?
Hi R-users,
I inted to make multiple plots using for loop. The question is how can
I adjust the left hand side margin of the plot according to the
names.arg argument in barplot2. In every plot I have different
annotations in the y axis and they vary in length. Now when I have
fixed margins
opar <- par(mar=c(3,15,0,2)...
I get the same margins in all of the plots. That leaves lots of white
2009 Mar 22
1
barplot2 x-axis
Dear R users,
I am trying to build a barplot2 graph however I can't find a way of defining
the scale for the x-axis.
I would like to show in my x-axis only the numbers 0, 25, 50, 75 etc. (so
far R is giving me a random scale hard to interpret and it doens't look
nice...). Could anyone advise me on how to do this please, it would be a
great help! Thank you.
Below I show the code I have
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
2004 Nov 26
2
barplot(2?) with CI from a zero reference line
Dear R Users, (and dear Marc)
First of all many thanks for the answers to my previous questions.
I would like to barplot the mean percent change of a variate with it's
CI. Bars should start from the zero reference line to height (in
barplot2).
Is there a way to tweak barplot2, for example, to do that ?
I have tried to see what the function was but unlike other functions was
not able to
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 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]]
2017 Jan 27
4
Suggestion: barplot function
Hello developers folks!
First, congratulations for the wonderful work with R.
For science, barplots with error bars are very important. We were
wondering that is so easy to use the boxplot function:
boxplot(Spores~treatment, col=treatment_colors)
But there is no such function for barplots with standard deviation or
standard error. It becomes a "journey" to plot a simple graph (e.g.
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 =
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
2005 Jun 30
2
How to rotate the axisnames in a BARPLOT
Hi all,
- how can I do a barplot with rotated axis labels? I've seen the example for
just a plot in the FAQ, but I'll missing the coordinates to plot my text at
the right position beneath the bars.
Is there any (easy?) solution?
- how can I set the y-axis in a barplot to logarithmic scale?
Many thanks in advance!
Best Regards
Tom
--
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 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
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:
2003 Aug 07
1
abline() plot order
I am performing this sequence
barplot
title
legend
abline
When abline renders the lines they appare to be in the layer
above the bars in the graph. Is there a way to make them
render first or 'behind' the bars?
Thanks.
2002 Oct 09
1
log in barplot
Hi,
In plot, axis can be in log format, e.g. plot(*, log="y")
Does a similar option exist for barplot ?
Thanks
Juli
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject