Displaying 20 results from an estimated 10000 matches similar to: "Drawing a rectangle around a barplot()"
2004 May 24
1
barplot
I??ve tried version 1.9.0 barplot with these (and others) example from the
help page:
tN <- table(Ni <- rpois(100, lambda=5))
r <- barplot(tN, col='gray')
I get :
<<...OLE_Obj...>>
Same example with version 1.8.1 gives the following result:
<<...OLE_Obj...>>
What is wrong with v.1.9.0?
Thanks,
Carlos Guevel
2004 Apr 16
2
barplot() does not draw bars correctly in R 1.9.0 (PR#6776)
Bars are not stacked, but superimposed. This happens even with the first
example of barplot:
tN <- table(Ni <- rpois(100, lambda=5))
r <- barplot(tN, col='gray')
--please do not edit the information below--
Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
status =
major = 1
minor = 9.0
year = 2004
month = 04
day = 12
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]]
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 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
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.
2010 Jan 12
1
barplot: border color when stacked
Dear R-users,
I am using R version 2.10.1 under windows.
In a barplot, I want to mark one of the bars with a special border color.
For example:
barplot(c(3, 7, 11), border = c(NA, "red", NA))
But how to do this when the bars are stacked?
for example:
barplot(matrix(1:6, ncol=3)) # border of second bar (i.e. the one with total height = 7) should be red again, I try:
barplot(matrix(1:6,
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
--
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 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
2003 Dec 23
1
How can I put error bars on a barplot() ?
Hi all,
I am a relatively new R user... trying to put error bars (from SD values) on my data represented with barplot(). But I can't find any function or instruction to do so.
Is there an easier way to do this than using segments() as I saw in an example in the R reference manual ? Then, can I define there graphical apparence ?
Thanks for help.
Regards
Olivier BUHARD
[[alternative HTML
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
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
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
2006 Oct 24
2
To big characters in barplot
Hi everybody!
The characters under the bars in my barplot are to big, so I can't see them all. How can I make them smaller?
Thanks!
David GRaf
--
2007 Jun 19
2
axis labels in multiple plots
Hi,
I'am trying to make a multiple bar plot over a map and I'm having difficulties with the distance
between axes labels and the axis. Trying to control this with mgp does not help because it
controls both axes simultaneously. For example, with default values (mgp = c(3, 1, 0)) y-axis
labels are ok, but x-axis labels are not. Setting mgp = c(3, 0, 0) gives good x-axis labels but
the
2001 Jul 04
3
by/ NA/ barplot
Colleagues
----------------------------------
System info:
Version 1.3.0 (2001-06-22) on NT
ESS v. 5.1.18 using emacs ver. 20.4
----------------------------------
I have generated an object (class = by) with NA values and want to plot
the output as a bargraph:
x2 <- by(scl.nos, species, sum)
These data are summed counts of fish by species
> x2
INDICES: AGI
[1] 0.729927
2009 Oct 14
1
default borders in boxplot and barplot
This is my first post so hopefully I haven't mucked up the rules.
I'm trying to change the default borders in either boxplot or barplot so
that, at the request of a journal, all of my figures have the same type of
border.
I've successfully used par(bty="o") using plot(1:10, bty="o"), but it
seems that barplot and boxplot have their own defaults that override
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]]