Displaying 20 results from an estimated 30000 matches similar to: "barplot labels"
2008 Jun 02
3
subject: horizontal text in barplot
I have a problem with the ylabs in barplot. When I draw the bars
horizontal the text for the y axis is not drawn horizontal too.
The text remains vertical. How can I change that. Thank's for your advice.
There is an example below.
##Example
plot.new()
jib <- data.frame(c(1:15),c(11:25),c(15:1),c(25:11))
colnames(jib) <-
2017 Sep 22
0
Lattice stacked barplot vertical bars
Hi Luigi
will this do
barchart(
D ~ A|E,
DF,
groups = C,
stack = TRUE,
horizontal = F,
main = "Comparison of test results",
xlab = "Count",
col = c("yellow", "orange"),
par.settings = list(
strip.background = list(col="light grey"),
superpose.polygon=list(col= c("yellow",
2017 Sep 22
2
Lattice stacked barplot vertical bars
Dear all,
I have made a barplot using lattice in which the bars are stacked
horizontally. I would like to stack them vertically, but if I use the
parameter 'horizontal = FALSE' I get the error: 'Error in FUN(X[[i]],
...) : invalid 'type' (character) of argument'. The problem I face is
that, in drawing the bars vertically, the y variable becomes numeric
rather than
2010 Oct 29
2
make many barplot into one plot
Dear R users
I would like to group my barplot graph (see example on the R help link). The proposed R code, adding individual bars to the plot, looks really overwhelming. My specific dataset just consists of five groups and three different levels within each groups (the individual bars). The .txt file is read as matrix (horizontal: group, vertical: levels).
The R trellis barchart (function
2008 Oct 29
2
Barplot: Vertical bars with long labels
Dear List,
I need a barplot with vertical bars. Each bar should have a label.
The problem is, that the labels are too long, so they overlap, or
only every seccond label is displayed in the output.
Here is a little syntax:
dd <- c(100,110,90,105,95)
barplot(dd,names.arg=c('Conduct Disorders','Attention Deficit',
'Eating Disorders',
2006 May 15
1
Trying to get values to display on horizontal barchart
Hello,
R 2.3.0
Windows XP
I have spent quite a bit of time trying to resolve my problem below, which included a R site search.
The "vertical bars" syntax below produces a vertical bar chart with the values displayed above each bar. I want to cast this graphic horizontally, but I have not been able to arrive at a suitable outcome. The best I have been able to do, using the second block
2009 Dec 08
1
histbackback function
Hi,
I'm trying to recreate a sensitivity-specificity graph using the
histbackback function. The only problem is that these graphs are typically
drawn with vertical rather than horizontal bar plots (and the histbackback
function only seems to work with horiz=TRUE argument, using "horiz=FALSE"
doesn't work). Does anyone know if:
1) there's a different graphing function that
2008 Oct 24
3
Barplot Labels Problem
Hi everybody,
well I'm trying to use barplot for the first time. I get a suitable graphic but I'm having a weird problem.
My graphic is generated from a matrix with several species (rowNames) and two abundance columns.
So each species will have two bars, and the species name should appear at left. Until now everything is Ok, but when a I plot it the species names (my labels) are cut by
2012 Mar 02
2
Spacing of text does not match spacing of bars in barplot
I have a very standard barplot. My labels are too long to be printed
horizontally under each bar, so I am using text to put the labels on a 45
degree slant.
However, the labels are spaced more narrowly than the bars, so on an 8
vertical bar plot, the end of the eighth label is lined up with the seventh
bar.
Preferably I don't want to do every text label separately (I'm having this
2002 Mar 27
2
Vertical bars with barchart()
I would like to create a barchart that has vertical instead of horizontal
bars. My goal is something similar to Figure 6.10 (p. 166) in
"The Basics of S and S-plus," except for the orientation of the bars.
I don't think bwplot() or xyplot() will work. Any suggestions?
Scott Waichler
Hydrology Group/Environmental Technology Division
Battelle Pacific Northwest National Laboratory
2003 Nov 13
5
xlims of barplot
I would like to create a family of barplots with the same xlimits. Is
there a way to "read" the xlimits from the first graph so I can apply it to
the subsequent ones?
I have tried just taking the min and max of the x data and the plot doesn't
show.
cheers
[[alternative HTML version deleted]]
2010 Sep 15
2
barplot: space between axis and bars
Hi all,
I have a problem with a rather simple plot (which I have used several
times) - barplot.
I want to create a barplot, where no space is between the axis and the bars.
Example:
barplot(rnorm(10), space=0)
creates a vertical axis at the left and bars. I want to skip the space
between both.
Thank you for your help.
Daniel
2010 Apr 03
2
histogram-like barplot? (or reverse?)
Hi,
I have a simple task I can't figure out. I'd like to take
some measurements I made, e.g.:
year (y-axis)
1
2
3
4
5
6
counts (x-axis)
10
10
20
30
40
50
And then, make a barplot with the x-axis ticks (representing
the borders between years) between the bars.
However, barplot seems to force you to make the x-axis
arbitrary categories. I want it to be continuous (as in a
2006 Dec 07
2
barplot - how to force vertical axis to cover entire plot area
I'm using barplot with the following call:
barplot(stat_data[[5]][,],axes=TRUE,axisnames=TRUE,axis.lty=1,xlab=xlab,ylab=ylab,beside=TRUE,las=1,font.lab=2,font.axis=1,legend.text=TRUE)
On some data, the vertical axis does not cover the
whole plot area and the last tick mark is smaller than
the maximum value.
I tried setting the ylim values but even with that,
some plots are still not OK,
2011 Apr 16
2
Rotating the x-axis labels of a barplot
Dear listserv,
Here is my latest formatting problem. I would like to rotate the x-axis labels
by 45 degrees on a _barplot_. Apparently this is slightly different from the
example given in the R FAQ, which is for rotating the x-axis labels on a
scatterplot
(http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f).
I have adapted that code, as best I could, and
2007 Aug 29
1
breaking the x-axis and having two different x-axis labels
Dear R community,
I have two questions concerning barplots that I struggle to resolve:
1) How can I break (interrupt) the x-axis (e.g.: have it display values from
-100 to -90 and 90 to 100 only)?
2) I overlay two horizontal barplots: one with negative values only and one
with positive values only: I would wish to mark the two datasets separately
on the x-axis (or some other way). If I use
2009 May 16
2
Question about barplot: gridlines & value labels
Hello!
I promise I looked into help files before asking. Still cannot figure
it out. I think it's because I am totally confused what packages use
lettice, which use trellis, etc.
Sections 1 and 2 below produce the data and the data to plot. My
question is about barplot in Section 3. I am trying to:
1. add only horizontal gridlines and manipulate the type and color of
that line. tck = 1 is not
2001 May 24
1
Labels perpendicular to axis
I would like to make my horizontal barplot vertical axis labels perpendicular to
the axis. I tried las=1, srt=90; I even tried yaxt='n' thinking I'd put the
labels in using mtext, but the axis continued to be drawn. Can anyone help me
with this? My barplot() statement looks like this:
barplot(height=foo$rebint[o1], names=foo$Unit[o1], horiz=TRUE,
col=mycolors[foo$type[o1]],
2003 Jan 17
2
barplot plotting problem
Hi,
Is there any equivalent of type="n" when constructing barplots which will
still construct the axes (plot=F, as it says doesn' plot anything at all).
Alternatively I tried setting col="white" and border="white" but the border
command does not seem to be operational. True??
Any other ideas? What I'm actually trying to do is construct vertical
abline()'s
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