search for: barplot2

Displaying 20 results from an estimated 90 matches for "barplot2".

Did you mean: barplot
2009 Sep 15
2
Viewing Function Code
Hi All, I'd like to see the function code behind the barplots2() function in the gplots package, however i come across a bit of a stumbling block of a hidden function, can anyone help? > library(gplots) > methods(barplot2) [1] barplot2.default* Non-visible functions are asterisked > barplot2 function (height, ...) UseMethod("barplot2") <environment: namespace:gplots> Mike -- Michael Pearmain Senior Analytics Research Specialist "I abhor averages. I like the individual case. A man...
2007 Oct 31
2
ylim in barplot2 function?
Hi list, I'm using barplot2 form the gplots package to plot a few numbers (I want to add SD bars later). However, I would like the y-axis not to start from 0 but 500. When I add the parameters YLIM, something goes wrong. The graph is not 'cut off' at 500. Instead the bars seems to sink trough the bottom of the graph....
2003 Apr 16
2
barplot2
Hello, I get a nice looking barplot using the barplot2 function in the gregmisc package: body2 <- barplot2(hh3, beside = TRUE, col = c("mistyrose", "lightcyan"), .... cex.names = 1.0, plot.ci = TRUE, ci.l = cil, ci.u = ciu, plot.grid = TRUE) box() However, obviously I lose the collors whe...
2006 Mar 01
1
Width of bars in barplot2
I'm using barplot2 to plot some data. Is there any way to determine the width of the bars in the generated plot? I know that barplot2 returns a list of the coordinates of the center of each bar, but since there is some white space between each bar, I don't know how to get the width of each bar. Jamie
2004 Nov 24
1
reshaping of data for barplot2
...L Yes 3.57142857 0.18319034 17.71219774 13 TT1 No 9.09090909 3.59221932 21.15923917 14 TT1 Yes 1.81818182 0.09326054 9.60577606 ... 10 HIGH No 26.53061224 16.21128213 40.26228897 11 HIGH Yes 10.00000000 4.66428345 20.14946472 I would like to reshape the data so that I can barplot2 treatments (gtt) with 2 beside bars for fdiab yes/no and add CI. Various attemps have been unsuccessful as I have not understood both the logic of beside and the nature of structures to be passed to barplot2. Not enough know-how with reshape and transpose either. Needless to say Dotplot works gr...
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 list it by > barplot2. Is it because it is called through UseMethods ? Thanks for any help. Jean-Louis
2003 Aug 07
1
abline() plot order
I am performing this sequence barplot title legend abline When abline renders the lines they appare to be in the layer above the bars in the graph. Is there a way to make them render first or 'behind' the bars? Thanks.
2007 Aug 30
1
Barplot2 using for loop, how to adjust margins?
Hi R-users, I inted to make multiple plots using for loop. The question is how can I adjust the left hand side margin of the plot according to the names.arg argument in barplot2. In every plot I have different annotations in the y axis and they vary in length. Now when I have fixed margins opar <- par(mar=c(3,15,0,2)... I get the same margins in all of the plots. That leaves lots of white space in plots where the annotations are short. Here is the code I'm using:...
2005 May 31
2
Barplot2 Title
Hello, I would like to know if it's possible to modify the name of groups of bar because on my barplot2, I have 5 groups of bars and one of them is called "User Contributes" and when I save the plot "User contributes" is to big so I don't have it on my plot! Is it pssible to put the name vertically! Thanks! Sabine --------------------------------- ils, photos et vidé...
2009 Mar 22
1
barplot2 x-axis
Dear R users, I am trying to build a barplot2 graph however I can't find a way of defining the scale for the x-axis. I would like to show in my x-axis only the numbers 0, 25, 50, 75 etc. (so far R is giving me a random scale hard to interpret and it doens't look nice...). Could anyone advise me on how to do this please, it would be a...
2007 Mar 01
2
barplot2, gap.barplot
...names=list(c("1", "2", "3", "4", "5", "6", "7", "8"),c("DATA", "DATA-SEM"))) conf_l <- data[, 1] conf_u <- data[, 1] + data[, 2] op <- par(no.readonly = TRUE) par(lab=c(8,10,7)) barplot2( height=data[, 1], width=1, space=1, col='black', border='black', angle=0, density=NULL, ylim=c(-2,55), xpd=FALSE, axes=TRUE, las=1, ci.u=conf_u, ci.l=conf_l, plot.ci=TRUE, ci.color="black", ci.lty="solid", ci.lwd=1, horiz=FALSE, main=&qu...
2006 Dec 28
2
Plot window - save as Postscript question
..., but all subtitle will appear, when changing the aspect ratio of the plot window with the mouse to a wide format. But does not work when using the save as postscript menu item from the plot window. is there any solution for that? opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0)) mp <- barplot2(VADeaths) # default mp <- barplot2(VADeaths) # default mp <- barplot2(VADeaths) # default mp <- barplot2(VADeaths) # default par(opar) Regards Knut
2005 Apr 12
1
Cumulative Points and Confidence Interval Manipulation in barplot2
R-Users, I am working with gplots (in gregmisc bundle) plotting some posterior probabilities (using barplot2) of harvest bag limits for discrete data (x-axis from 0 to 12, data is counts) and I ran into a couple of questions whose solutions have evaded me. 1) When I create and include the confidence intervals, the lower bound of the confidence intervals for several of the posterior probabilities is belo...
2003 Aug 07
5
gregmisc
Hi How do I install "gregmisc" packages? I did- % sudo R > install.packages("gregmisc") . . > barplot2() but, Error: couldn't find function "barplot2" -- atuya Mac OSX 10.2.6 R 1.7.1
2011 Jun 21
2
par code help
I am making a barplot using barplot2 from gplots where each bar represents a specific tree species. I have formatted the species names on the x-axis so that the genus name is above the species name and have then rotated the labels 45 degrees to save room. This is my code: >columncolor<-c("grey20", "grey20&...
2003 Feb 21
5
help
Hi, help.I would like to plot the mean and standard deviation against a factor in the xaxis- in other words I want an errorplot. I also want to put the standard deviation like a "T" on top of a barplot. How can do this in R Bragadeesh
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...
2004 May 07
1
x-axis tick mark labels running vertically
I'm plotting obesity rates (y-axis) vs Public Health Unit (x-axis) for the province of Ontario and would like to have the Public Health Unit names appear vertically rather than the default, horizontally. I'm actually using the 'barplot2' function in the {gregmisc} library ... I haven't been able to find a solution in either the barplot2 options or the general plotting options. Any pointers would be appreciated. - Mohamed
2012 Apr 24
2
Positioning main title
Hello, I have a barplot where each row has quite long texts and I have used "par" to make some room in the left: par(mar=c(0, 17, 3, 0), oma=c(0, 0, 0, 0)) barplot2(prueba, main = l, col=colores, horiz=TRUE,las=1, cex.names=.7) My problem is that main text appears justified to the plot. I want to put it in the middle of the image, and find a way to sort it out with mtex par(mar=c(0, 17, 3, 0), oma=c(0, 0, 0, 0)) barplot2(prueba, col=colores, horiz=TRUE,las...
2005 Jul 08
1
Overlying a Normal Dist in a Barplot
...ns 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 "overlay" a normal distribution on the figure (using rnorm (1000, mean, sd)). My intent is to show that using a mean(and associated sd) estimated from discrete count data may not be a valid representation of the distribution of successful offspring. Obviously the x and...