Displaying 20 results from an estimated 10000 matches similar to: "label option in 'barplot'?"
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
2003 Feb 05
4
barplot default colors
Dear R-help,
Can some one explain why barplot() uses changing colors in the bars by
default? I should think that most of the time when people draw barplots,
they want the bars to be in the same color. (At least that's what I'd
expect. The first time I used barplot() in R, I was shocked to see the
colors.) As an example, one example in ?layout draws a scatterplot with
histograms drawn
2003 Feb 05
4
barplot default colors
Dear R-help,
Can some one explain why barplot() uses changing colors in the bars by
default? I should think that most of the time when people draw barplots,
they want the bars to be in the same color. (At least that's what I'd
expect. The first time I used barplot() in R, I was shocked to see the
colors.) As an example, one example in ?layout draws a scatterplot with
histograms drawn
2005 Nov 14
1
bug/feature with barplot?
I have found a bug/feature with barplot that at least to me shows
undesireable behaviour. When using barplot and plotting fewer
groups/levels/factors(I am unsure what they are called) than the number
of colors stated in a col statement, the colors wrap around such that
the colors are not fixed to one group. This is mostly problematic when
I make R figures using scripts, since I sometimes have
2011 Jan 09
1
Getting total bar's label & value labels in a barplot
Hi,
I have been trying to get the label under the total column - i.e. a mean value of columns 2 to 6 - in a barplot I generate with this script:
t1 <- tapply(A, B, sum)
t1[8] <- mean(t1[2:6])
t1 <- as.table(t1)
barplot(t1, ylim=c(0,3000))
mtext("Var1", side = 1, line = 3)
mtext("Var2", side = 2, line = 3)
I have been trying to use
axis(1, at=1:8,
2002 Jun 24
1
barplot
Hi,
a couple of simple graphics questions:
1. I have a little function that makes bar plots. Now I would like to
limit the Y-axis outside this
function (that means after calling the barplot() command) depending on
the data to be plotted .
Does anyone know how to do this ???
2. When using barplot() and limiting the yAxis, R draws the bars below
the x-axis. How can I avoid this problem ??
2009 Feb 09
2
Help on BarPlot
Dear all
As a new user of R, can someone please help me with the following
I have created a programme to analyse laboratory data and one of the graphs is a bar plot of 'Z' scores.
On the bar plot I am using the following line to plot some results
barplot (zb[,c("ZBW")], ylim = c(-6,6), names.arg=zb[,c("LabNo")],xlab="Lab Code Number", cex.names = .5 ,
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
2009 Jun 02
5
how to add value on the bar ploted by barplot()
how to add value on the bar ploted by barplot()?
and the axis label is too big, anyone know how to change their font , thanks
--
Xiaogang Yang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University Vancouver
[[alternative HTML version deleted]]
2009 Feb 27
2
add absolute value to bars in barplot
Hello,
r-help at r-project.orgbarplot(twcons.area,
beside=T, col=c("green4", "blue", "red3", "gray"),
xlab="estate",
ylab="number of persons", ylim=c(0, 110),
legend.text=c("treated", "mix", "untreated", "NA"))
produces a barplot very fine. In addition, I'd like to get the
2004 Nov 27
1
labelling barplot
Hi. I'd like to produce a barplot where only the lowest value and the
highest value are labelled on the x-axis. E.g. I might have a list
of numbers and frequencies:
barplot( c( 2, 2, 0, 4, 2 ), names.arg=c( 1, 2, 3, 4, 5 ) )
where the data is a set of counts for some values between 1 and 5. I'd
like to have a barplot where only the extremes 1 and 5 are labelled.
How do I do this?
2002 Nov 12
4
trouble positioning legends on barplot written to a file
I'm trying to generate some plots for print publication and I'm having trouble
getting them the way I want. I get a plot with a legend that overlaps the bars
and looks bad. Also, I'm saving this as PDF file (whatever happened to the
"png" function to save as PNG format, in r 1.4.1?)
I've tried a number of things, which produce a number of questions.
1) it seems that the
2006 Oct 02
5
Barplot
Hello,
I have used the following data to draw my barplot:
BL LR Q
36.35 1.00 1.92
36.91 4.00 0.00
25.70 6.00 0.00
34.38 3.00 1.92
05.32 0.50 0.00
BL<-c(36.35, 36.91, 25.70, 34.38, 05.32)
LR<-c(1.00, 4.00, 6.00, 3.00, 0.50)
Q<-<(1.92, 0.00, 0.00, 1.92, 0.00)
barplot(dt$LR, main='LR Value', col='orange', border='black',
2001 Jan 18
2
dotplot: character size of labels
Dear R users,
using dotplot (R1.2.0, WinNT4.0), I am trying to change the character size
of the labels of the points:
> # example
> data(VADeaths)
> dotplot(VADeaths, main = "Death Rates in Virginia - 1940")
> # I'd like to have smaller character size of the labels (for age and
population groups)
> ?dotplot
> # for argument "cex", this says:
2005 May 04
1
Plotting means and confidence intervals by group factor using lattice graphics?
Dear R graphics gurus,
Another question about lattice graphics. This time I would like to plot
means and confidence intervals by group factor in a lattice graph. I can
not find any working lattice examples. Maybe a custom panel function is
the answer, but that is a bit beyond me for now.
The individual plots within the lattice graph could look like this:
# Example with confidence intervals
2001 Feb 05
1
Bar widths in barplots don't change
Is the width= parameter in barplot() supposed to work? I couldn't get it to
work in my plot, and even in the example,
data(VADeaths, package = "base")
barplot(VADeaths, width=rep(0.1, 4))
the plot looks identical regardless of what I put in for the width. I looked at
the source for barplot() and it looks like it SHOULD work (but what do I know).
Am I doing something wrong?
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"),
2007 Sep 25
2
Adjust barplot to the left
Hello,
I have the following problem: I created an ecdf and a barplot. Unfortunatly,
the bars are not where I would like them to be (please see picture below).
http://www.nabble.com/file/p12877530/problem.gif
That's my code:
#------------------------
par(mfrow=c(2,1), mar=c(2,3,3,2))
#ECDF
x = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2)
F2.5 <- ecdf(x)
plot(F2.5,
2006 Oct 13
2
Multiple barplots on the same axis
Hi
R newbie here :)
I need to plot 3 barplots in the same axis, something like
|
| _ _ _
| | | _ | | _ | | _
| _ | || | _ | || | _ | || |
| | || || | | || || | | || || |
-+-----------------------------------------
| v1 v2 v3
Is there any documentation describing how to achieve that, and
2010 Jun 09
1
barplot of a table
Good morning,
I've been dabbling in R, so my knowledge has quite a few holes in it. I'm
hoping that this has a simple answer and just falls into one of those holes.
I have a table of percentages that I want to display as a barchart. Groups
1-4 in columns and Variables 1-5 in rows, with the percentage of each group
expressing interest in each variable in the cells. In Excel I just