Displaying 20 results from an estimated 9000 matches similar to: "RFE: Add "..." args to barplot()'s xyrect() function calls"
2008 Jun 05
0
bug in barplot.default (graphics) (PR#11585)
There seems to be a minor bug in barplot.default when used with log scale w=
here one or more values is NA:
dat <- matrix(1:25, 5)
dat[2,3] <- NA
barplot(dat, beside =3D T) #Plots and appropriate barplot with gaps for m=
issing data
barplot(dat, beside =3D T, log =3D "y")
#Error in if (min(height + offset) <=3D 0) stop("log scale error: at least =
one 'height +
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]]
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,
2002 Jul 25
3
Barplot coloring question
Hi all,
I have the following dataset, call it test.data (30 columns, and one row
named "0"):
ADVP ADVP AP AP CONJ CONJ CP CP DU DU INF INF MWU
MWU NP NP PP PP PPRT PPRT REL REL SMN SMN SSB SSB SV1
SV1 TI TI
0 96.85 2.05 89.07 2.54 70.91 2.37 94.92 3.46 82.31 11.33 40.96 2.25 98.06
3.43 90.77 17.63 86.60 10.78 60.27 1.32 93.27 0.97 77.60
2006 Dec 01
3
Make many barplot into one plot
Dear all,
## I have 4 tables like this:
satu <- array(c(5,15,20,68,29,54,84,119), dim=c(2,4),
dimnames=list(c("Negative", "Positive"), c("Black",
"Brown", "Red", "Blond")))
dua <- array(c(50,105,30,8,29,25,84,9), dim=c(2,4),
dimnames=list(c("Negative", "Positive"),
2004 May 31
2
barplot() behavior changes under 1.9.1 Alpha
Greetings all,
It would appear that some default behavior changes for barplot() have
been introduced into Version 1.9.1 alpha (2004-05-30).
One change is in the specification of the default 'col' argument, which
is now:
col: a vector of colors for the bars or bar components. By default, grey
is used if height is a vector, and heat.colors(nrow(height)) if height
is a matrix.
2012 Dec 02
0
Labeling a range of bars in barplot?
Marc Schwartz (via MN) wrote:
> On Tue, 2005-12-13 at 10:53 +0000, Dan Bolser wrote:
>
>>Hi, I am plotting a distribution of (ordered) values as a barplot. I
>>would like to label groups of bars together to highlight aspects of the
>>distribution. The label for the group should be the range of values in
>>those bars.
>>
>>As this is hard to
2009 Dec 15
2
Diagonal Labels on "Beside" Bars in Barplot
My question is based on an example provided in the following:
Referencing:
Statistics with R
Vincent Zoonekynd
<zoonek at math.jussieu.fr>
6th January 2007
URL:
http://zoonek2.free.fr/UNIX/48_R/all.html
data(HairEyeColor)
a <- as.table( apply(HairEyeColor, c(1,2), sum) )
# Provided Example
barplot(a, beside = TRUE,
legend.text = attr(a, "dimnames")$Hair)
# I
2003 Nov 24
0
Enhanced heatmap, barplot functions
I've just uploaded gregmisc 0.8.6 to CRAN, it should show up in the package
tree shortly. It contains both an enhanced barplot() [named barplot2 in my
code] and an enhanced heatmap() function that I would like to see propagate
to the base and mva packages respectively. I've checked the code for both
functions against the code in R 1.8.1, and these functions have all of the
latest
2003 Nov 07
1
barplot(names.arg) versus axis(labels)
Should I be able to use axis() on a barplot? i have a data.frame, the first
3 values of which are:
> c[1:3,]
median mean
A1 56.5 58.50000
A61 73.0 73.00000
A62 63.0 63.00000
> str(c)
`data.frame': 19 obs. of 2 variables:
$ median: num 56.5 73 63 161 51 55 44.5 22 54 49 ...
$ mean : num 58.5 73.0 63.0 161.0 47.5 ...
if I do barplot(median) and then try
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
2011 Nov 11
1
barplot names.arg
Hello there,
I have a question regarding bar plots. I am trying to plot the data from
the following matrix as a barplot -
# input data
mdat <- matrix(c(0.1,0.9,0.9,0.1,0.5,0.5,0.45,1-0.45,0.6,0.4,0.8,0.2), nrow
= 6, ncol=2, byrow=TRUE,
+ dimnames = list(c("Mon", "Mon", "Tues", "Tues", "Thurs",
"Friday"),
+
2010 Dec 08
1
Formatting 'names.arg' in barplot
Hello,
I've been looking through ?phantom and ?expression and this forum for
examples of how I might be able to manipulate some of the names that appear
on the y-axis of the barplot below. For example, the "gw" in "ECgw" would
appear as a subscript...or "qr" would be the theta symbol followed by
subscript "r". My attempts haven't even come close
2009 Jul 23
3
How to pass a character argument which contains expressions to arg.names in barplot?
Hi all
Can anybody help me with this? I am trying to include in an automatic way
the argument in arg.names in a barplot. I generate the labels I want to
appear below the bars with a for loop, and they contain subscripts, so I
need to use expression
anch<-0.05
esp<-4
for (i in 1:dim(Ntot)[1])
{
naux<-Ntot[i,]
naux2<-naux[naux>0]
nind<-which(naux>0)
2011 Mar 17
1
Using barplot() with zoo -- names.arg not permitted?
I've used barplot(), including the anmes.arg parameter, on data frames
successfully, but I'm even newer to using zoo than I am to R. :-}
I am working on a functon that accepts a data frame ("df") as its
primary argument, extracts information from it to create a zoo, then
generates a plot based on that.
The data frame has a column called "time" which is a standard
2006 Mar 06
2
barplot names.arg
How can i set a rotation for the names.arg in barplot?
2012 Apr 27
1
Wrap names.arg text in barplot
Hello!
Does anyone know of a handy way to wrap the names.arg text in a barplot?
I'm creating a bar plot with rather long labels; I can adjust the margins,
but I'd also like to have the text wrap to about 4cm. Thanks!
Kyle H. Ambert
Doctoral Candidate, Bioinformatics
Oregon Health & Science University
ambertk@gmail.com
[[alternative HTML version deleted]]
2004 Aug 13
1
barplot and names.arg
R-help
Is there any option to get closer the x-axis and names.arg from barplot?
Thank you
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298 580800
Fax: +298 353901
E-mail: luisr at frs.fo
Web: www.frs.fo
2011 Jul 14
2
Problem with x labels of barplot
Hello everyone,
i am currently creating a barplot.
This barplot takes a vector of ~200 datapoints.
Each datapoint represents one bar.
http://img96.imageshack.us/i/human1w.png/
(Ok as you see, it is not only one barplot, but a series of barplots).
Now, these barplots represent a human chromosome. This means they are
ordered. For instance bar number 50, means position 50 in the human
chromosome.
2004 Sep 16
1
barplot with vcd library
'barplot' doesn't seem to work with vcd library.
Am I supposed to detach vcd when I want to use barplot?
Here's an example.
Say I have the following matrix,
> m <- matrix(c(1,2,3, 4,5,6, 3,4,5, 2,3,4), ncol=4)
> m
[,1] [,2] [,3] [,4]
[1,] 1 4 3 2
[2,] 2 5 4 3
[3,] 3 6 5 4
Then
> barplot(m)
gives a barplot of the data.
However,