similar to: Labeling a range of bars in barplot?

Displaying 20 results from an estimated 20000 matches similar to: "Labeling a range of bars in barplot?"

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
2005 Feb 18
4
barplot and ylim - display problems
The following single line of code shows what I am trying to do, and the problem I am having... barplot(c(101,102,103),ylim=c(100,103)) The 'xaxis' is missing, and the grey bars 'fall off' the plot area. This is generally ugly, and I would like to trim the bars (ideally they would have a ragged appearance to show that I am 'zooming in'). I can see why what I am trying to
2009 May 27
3
Labeling barplot bars by multiple factors
I want to plot quantitative data as a function of three two-level factors. How do I group the bars on a barplot by level through labeling and spacing? Here <http://www.thomaslevine.org/sample_multiple-factor_barplot.png>'s what I'm thinking of. Also, I'm pretty sure that I want a barplot, but there may be something better. Tom [[alternative HTML version deleted]]
2004 Nov 03
4
Legend placement in barplot?
This has been asked before, but all the answers are hidiously complex. The legend.text=TRUE option of barplot is almost exactly what I need, except I need a legend.placement='tl' (top left) option. This option would be in contrast to the default placement which we could call 'tr' (top right). Anyone know how to edit the barplot code to make this change? Could someone like me
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
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',
2010 Sep 09
5
Highlighting a few bars in a barplot
Hello, I have a bar plot where I am already using colour to distinguish one set of samples from another. I would also like to highlight a few of these bars as ones that should be looked at in detail. I was thinking of using hatching, but I can't work out how or if you can have a background colour and hatching which is different between bars. Any suggestions on how I should do this? Thanks
2004 Nov 02
2
barplot manpage (PR#7331)
Full_Name: Dan B Version: R 2.0.0 (2004-10-04). OS: Fedora 2 Submission from: (NULL) (80.6.127.185) The man page for barplot (?barplot) is confusing... <quote> cex.axis: expansion factor for numeric axis labels. cex.names: expansion factor for axis names (bar labels). </quote> What is an 'expansion factor', and what does it do in this context? <quote> axis.lty: the
2010 Mar 22
3
add information above bars of a barplot()
hi, I have a barplot with six clusters of four bars each. Now I would like to add the exact value of each bar as a number above the bar. I hoped to get some tips here. I could simply add text at the different positions, but I don't understand how the margins on the x-axis are calculated (how can I get / calculate the x-ticks of a barplot?). Also I would like to code this flexible enough so
2010 Apr 24
2
barplot - offsetting individual bars
Hello, I'm trying currently using barplot to summarize precipitation data. So far I've compiled total annual snow and rain accumulation in a table (attached). I've been successful at plotting it using the following code: fig=barplot(t(Annual_Precip_table), horiz=TRUE, space=0, col=c("grey70", "white"), axes=FALSE) . . The result is a stacked barplot with total
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
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
2004 Dec 02
1
Gap between axis and bars in barplot()
Hi Windows XP, R 2.0.1. I am drawing a very large barplot using jpeg() - setting the width to 10,000 as there are over 5000 bars. This all works fine and I get exactly what I want - except there is a huge bit of white space between the Y-axis and the first bar - so much in fact that I have to scroll two screens from the Y-axis before I see the first bar. After that the bars are evenly spaced
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
2005 May 30
3
values of bars in barplot
Hi, I couldn't find how to have the values written on the top of each bar in a barplot. When using hist(), it is possible to use labels=T, but this option does not seem to exist for barplot(). Is there a trick I could use to do that ? Thanks to all Luc
2008 Oct 08
4
Space between bars in barplot
Hi, with the "space" parameter it is possible to change the gap / distance between the bars, but is it also possible to change the "space" after each 6th bar? So for example you have bars from 1 to 6 then a large gap and then the next six bars from 7 to 12 Thanks a lot! -- View this message in context:
2010 Sep 10
1
adding labels above bars in a barplot
Hello, I want to make a general routine to draw barplots with numbers plotted above each bar. See the example below. I could not place the numbers on the middle of each bar because I could not calculate the right position of each x-axis tick. axTicks(1) indicated a unitary step, but it does not seem work. I appreciate any help or suggestions. Best regards, Antonio Olinto
2007 Aug 04
2
bars' values on barplot
Hi, I need bars' values on barplot, and I don't know how I can put it. I do my barplot as: data<-read.table("/my_path/file.dat",header=T, sep="\t") barplot(as.matrix(data),log="y",beside=TRUE,main="my_title", xlab="x name", ylab="y name"). How can I add the values on each bar? Thanks.. [[alternative HTML version deleted]]
2011 Jan 25
2
barplot with varaible-width bars
I would like to produce a bar plot with varying-width bars. Here is an example to illustrate: ww <- c(417,153,0.0216,0.0065,556,256,0.0162,0.0117, + 726,379,0.0358,0.0501,786,502,0.0496,0.0837, + 892,591,0.0785,0.0795) yy<-t(t(array(ww,c(2,10)))) barplot(yy[,2*1:5],las=1,space=c(.1,.5),beside=T) produces a barplot of 5 pairs of bars that are of equal width
2010 Sep 09
3
Alignment of lines within barplot bars
Dear all, I have a barplot upon which I hope to superimpose horizontal lines extending across the width of each bar. I am able to partly achieve this through the following set of commands: positions <- barplot(bar_values, col="grey") par(new=TRUE) plot(positions, horiz_values, col="red", pch="_", ylim=c(min(bar_values), max(bar_values))) ...however this results