similar to: Barplot() with log axis scaling and other features

Displaying 20 results from an estimated 10000 matches similar to: "Barplot() with log axis scaling and other features"

2008 Nov 07
0
barplot can put legend in wrong place, request option to override that (PR#13265)
This in an enhancement requestion, to add the capability to pass arguments through barplot() to legend(). I've created a version that does this. # Run this code; notice that the legend # is superposed over one bar: barplot(height = cbind(x = c(465,91) / 465 * 100, y = c(840,200) / 840 * 100, z = c(37,17) / 37 * 100), beside = FALSE, width =
2002 Aug 28
1
plotting barplot in log scale
Hello. Does anyone know how to get barplot to plot in log scale? I tried: barplot(Mx, log="y", besides=F), where Mx is a 2 by 31 matrix to be plotted. R complains: Error in plot.window(xlim, ylim, log = "", ...) : formal argument "log" matched by multiple actual arguments I know there's nothing wrong with the rest of the arguments because if I took
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
2005 Jun 04
1
barplot and missing values?
I want to include missing values in my barplot to get the correct x-axis, for example, x <- c(1,2,3,4, 9) y <- c(2,4,6,8,18) barplot(y) The above looks wrong because the last height in y should be a long way over. So I want to do something like... x <- c(1,2,3,4,5,6,7,8, 9) y <- c(2,4,6,8,0,0,0,0,18) barplot(y) However... I am actually using barplot2 to use the
2017 Feb 03
0
Suggestion: barplot function
On 1/27/2017 8:30 AM, danielrenato at lycos.com wrote: > Hello developers folks! > > First, congratulations for the wonderful work with R. > > For science, barplots with error bars are very important. We were > wondering that is so easy to use the boxplot function: > > boxplot(Spores~treatment, col=treatment_colors) > > But there is no such function for barplots with
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
2012 Mar 15
1
Bar graph with 2 Y axis
Dear R users,   I need to draw a barplot with 2 Y axis. I have 3 days each of wich having 2 groups (and error bar for each of them). The height of the 3rd day is too tall compared to others. That's why I have to use a second Y axis for that. I am using  "barplot2" function of "gplots" library (to be able to add error bars as well). Data and  codes currently I am using is
2004 Apr 23
0
Barplot and R 1.9.0
I would like to preface this by saying that I have not been using R for long, and consider myself a beginner. But the more I use and learn R, the more impressed I am with both the 'product' itself, and the efforts of those developing it. It has been noted (eg Duncan Murdoch, 15 April), that the barplot function in R 1.9.0, when used on a tabulated single factor, produces a plot only one
2007 Mar 01
2
barplot2, gap.barplot
Hello, I try to handle a simple bar-plot, but it turns out to be not as simple as I thought. 1) I have created a .dat-File, e.g. test.dat: DATA DATA-SEM 2.2 0.32 6.2 1.30 12.7 1.61 48.6 3.08 4.1 0.86 4.5 0.32 1.5 1.13 1.2 1.08 The first row is the data represented by bars. The second row deals with the Standard Error of Mean. The lines correspond to time-intervals of experiments. 2) I now
2005 Jun 09
1
color on barplot
Hello, On my barplot, I have on the axis y, the names of the rows of my matrix r_mat! is it possible to change the color of these names on my barplot? barplot2(t(r_mat),beside=TRUE,horiz=TRUE,plot.grid=TRUE,xlab="R",font.lab=4,las=2,xlim=c(0,1)) thanks, Sabine --------------------------------- [[alternative HTML version deleted]]
2006 Mar 08
1
Adding polygons to a barplot
I have a barplot I have created using barplot2 and I have been able to add points and lines (using the points and lines methods, respectively). I now need to add some polygons (triangles in particular), that I want to be shaded to match bars in the plot. I can get the coordinates of the corners of the triangles, but don't know how to draw the triangles. I know there is the grid.polygon
2005 Jul 08
1
Overlying a Normal Dist in a Barplot
R-Users, Hopefully someone can shed some light on these questions 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
2008 Sep 15
1
modifying this barplot
Here is an example barplot that needs some tweaking: library(gplots) ratios <- data.frame(c(0.05,0.10,0.9),c(0.06,0.15,0.76)) rownames(ratios) <- c("T1","T2","T3") colnames(ratios) <- c("A1","A2") ratios <- as.matrix(ratios) myplot <- barplot2(ratios, beside = TRUE,col = c("blue",
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 long, so that I would like to wrap/split them at a space once they
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 Nov 23
1
Barplot and plot means with confidence intervals in the same plot
I want to obtain a barplot with error bars and a mean plot with error bars with other scale on the left in the same plot. I need help to get the same x axis (centered) when overlay two plots (barplot2 and plotCI (or lineplot.CI) with errorbars), with diferent y axis. I use par (new=T) but the X axis names are not centered with the figures. An example of my data:
2007 Jan 25
1
barplot x-axis problem
Hi R-users, I'm new to R and I'm trying to make a barplot combined with two lines (refering to secondary y-axis). Bars should represent the number of transfused patients by age class and sex and lines should represent the amount of blood units given in age classes. I have now successfully made a barplot and used par(new=TRUE) to plot another empty graph at the top of the barplot.
2009 Nov 26
1
Barplot with confidence intervals
I have a file in the following format: Scenario1 Scenario1CIL Scenario1CIU Scenario2 Scenario2CIL Scenario2CIU 60 57 62 45 48 50 110 101 111 51 50 52 120 117 122 64 62 66 192 190 194 79 75 79 where: First column = Scenario1 mean value Second column = Scenario1 Low Confidence Interval Third column = Scenario1 Upper Confidence Interval Fourth column = Scenario2 mean value Fifth column =
2007 Apr 07
2
Setting where the x-axis crosses the y-axis
Hi all, my apologies for a probably very obvious question but i can't figure out if, on a bar plot, there is a simple way to have the x-axis cross the y-axis at 1, when the y-axis is on a log-scale? I want to draw a bar plot, and have some of the bars "drop" below 1 while starting from 1. Is this possible? I have been trying various things using barplot, barplot2 etc... without
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