similar to: Width of bars in barplot2

Displaying 20 results from an estimated 10000 matches similar to: "Width of bars in barplot2"

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
2006 Mar 03
1
R plots in PowerPoint
I have some plots that I generating using R (using trellis, plot, and barplot2) that I want to include in a PowerPoint presentation I am giving. My computer is running OS X. I find that presentations are easier to read when there is light text on a dark background and would like to generate plots that fit that style. The plots I am generating are all grayscale. Is there an easy way to get R to
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
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
2006 Jul 10
2
Setting the colors of lines in a trellis plot...
With some help from those with expertise on this list, I managed to produce a plot using trellis that looked like I wanted it to look. Now, I need to take the same plot and make the lines on it color, but I want to specify the color for the lines myself. I've managed to make the key use the colors I want. I've managed to make the symbols of the actual plot use the colors I want. But I
2005 Sep 01
4
Spacing and margins in plot
If I use the following command to plot points: plot(c(1,2,2,3,3,3), type="p", pch=20, ylab="Y Label", xlab="X Label", xaxt="n") there is a large amount of space between the label "X Label" and the actual x-axis. If I change the xaxt="n" to xaxt="s", the label "X Label" don't move at all. Is there a way to get
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. Because its a little hard to explain, here is a self-containing
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 when converting from ps to a pdf (outside of R)
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 great help! Thank you. Below I show the code I have
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]]
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
2005 Sep 01
1
Spacing and margins in lattice...
Similar to my last question, I want to tighten up the spacing and margins in a plot I am doing with lattice. Here are the commands I'm using: data <- data.frame(x=c(1:3, 1:3), y=c(1:3, 1:3*2), cat=c("foo","foo","foo","bar", "bar","bar")) xyplot(panel=panel.superpose, y~x, data=data, groups=cat, type="b",
2005 Aug 09
1
Saving trellis output to files in scripts...
With much help from Chuck Cleland, I was able to get xyplot to generate the plot I wanted. I'm trying to write a script (that can be read using source("file")) to create the plots I want and save them to files. If I type the following lines into the R (in interactive mode), the correct plot gets saved into the file myfile.ps with a size of 4,096 bytes: ----------------------------
2005 Aug 14
1
Labels on axes with log scales with lattice
I using lattice to make some plots and I want to make the y-axis on some of these plots use a log scale. In the following plot: x <- 1:10 y <- 2^x xyplot(log10(y) ~ x) I get tick marks on the y-axis at 0.5, 1.0, 1.5, 2.0, 2.5, and 3.0. I would rather have just 3 tick marks at 1.0, 2.0, and 3.0 but labeled 10, 100, and 1000. I know this can be done using the "at" and
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
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
2005 Sep 15
5
Copying from graphics window in OS X
I'm running R from an Xterm window is OSX-Tiger. Graphical windows appear as they should, but I'm having trouble copying from them--using cmd+c or the Copy option in the Edit menu won't place the graph in the clipboard (when I paste into a running OS X app, I get whatever was the last copied thing from a non-x11 window). Any ideas on how to copy from a xterm-launched graphical
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
2003 Dec 23
1
How can I put error bars on a barplot() ?
Hi all, I am a relatively new R user... trying to put error bars (from SD values) on my data represented with barplot(). But I can't find any function or instruction to do so. Is there an easier way to do this than using segments() as I saw in an example in the R reference manual ? Then, can I define there graphical apparence ? Thanks for help. Regards Olivier BUHARD [[alternative HTML
2007 Jul 25
3
Constructing bar charts with standard error bars
I am new to R. I want to graph group data using a "Traditional Bar Chart with Standard Error Bar", like the kind shown here: http://samiam.colorado.edu/~mcclella/ftep/twoGroups/twoGroupGraphs.html Is there a simple way to do this? So far, I have only figured out how to plot the bars using barplot. testdata <- scan(, list(group=0,xbar=0,se=0)) 400 0.36038 0.02154 200 0.35927