similar to: barplot groups of different size i.e. height is NOT a matrix

Displaying 20 results from an estimated 10000 matches similar to: "barplot groups of different size i.e. height is NOT a matrix"

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
2011 May 28
1
ggplot pale colors
Hello i am new to ggplot and i observed a strange behavior. I want to display two groups of points, each group with a different color. But i encountered a problem with the colors. Here is a first example: dataset <- data.frame(Main = c("A", "A", "B", "B"), Detail = c( "b", "c", "1", "2"), resp = runif(4, min
2010 Aug 25
1
multiple x factors using the sciplot package
Dear R community, I am a beginner using the sciplot package to graph barplots. I would like to be able to graph two x factors (Sampling.year and Period). Sampling.year: 2006, 2007, 2008, 2009 Period: First, Second, Total The parameter "group" is the different species I looked at. They can be seen in the legend. The parameter "response" is the Average percentage
2017 Jan 27
4
Suggestion: barplot function
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 standard deviation or standard error. It becomes a "journey" to plot a simple graph (e.g.
2009 Jul 29
3
Side by Side Barplot Newbie Question
Hi, Many apologies for sending this twice. I accidentally hit the send button before I finished writing my mail. I am new to R and I hope someone can help me with my problem. I am trying to draw a side by side barplot. There is a main experiment and there are many sub experiments within the main experiment. I would like to draw a bar plot showing the number and type of sub_experiments done for
2003 Feb 05
4
barplot default colors
Dear R-help, Can some one explain why barplot() uses changing colors in the bars by default? I should think that most of the time when people draw barplots, they want the bars to be in the same color. (At least that's what I'd expect. The first time I used barplot() in R, I was shocked to see the colors.) As an example, one example in ?layout draws a scatterplot with histograms drawn
2003 Feb 05
4
barplot default colors
Dear R-help, Can some one explain why barplot() uses changing colors in the bars by default? I should think that most of the time when people draw barplots, they want the bars to be in the same color. (At least that's what I'd expect. The first time I used barplot() in R, I was shocked to see the colors.) As an example, one example in ?layout draws a scatterplot with histograms drawn
2009 Jan 20
2
Stacked barplot with two stacked bars besides each other
Hi, I have a particular barplot I would like to generate, but I am having trouble getting it to work. What I would like is in effect two barplots with stacked bars merged into one. For example, I have two samples (yoda1,yoda2) on which I measure whether two variables (var1,var2) are present or absent for a number of measurements on that sample. > var1 <- data.frame(yoda1=c(3,7),
2004 Dec 01
2
barplot() using beside=TRUE and the density argument
Hi I am using barplot() to draw some barplots, with a matrix as the data so that multiple bars are drawn for each data point. I want to use the argument "beside=TRUE" to juxtapose the bars instead of stacking them. If I execute: barplot(data,names.arg=names,density=c(20,10),beside=FALSE) I get the expected behaviour i.e. the bottom part of the column is shaded 20 lines per inch, the
2012 Jan 10
2
stacked barplot colour coding
Hi all, i'm fairly new to R and its graphing, but having unsuccessfully 'googled' and checked this forum to find answer to my problem, i'm posting my question here. I'm trying to plot stacked barplot. I have simple data that looks like this: bg ag 0.41 2.81 0.37 2.91 0.31 2.06 0.32 2.39 every row indicates a factor (1,2,3,4, see below in names.arg). Now when i plot
2010 Dec 19
2
barplot: width of label
Hello, I try to make barplots with rather wide labels. A simplified example of this: x <- c(12, 33, 56, 67, 15, 66) names(x) <- c('Richard with a long surname','Minnie with a long name,'Albert','Helen','Joe','Kingston') barplot(x, las = 2) Now the label 'Richard with a long surname' is too long to fit beneath the bars. A simple solution
2009 Nov 03
1
Stacked barplot: specifying individual bar hue/luminance
Hi all, I'm trying to generate barplots from simple but long (~100000-row) data files, in which each bar will comprise two stacked 'sub-bars'. All the upper sub-bars will have the same hue, and all the lower bars will, likewise, have another uniform hue. However, I wish to specify the luminance (aka brightness) of each bar (i.e., each whole bar comprising two sub-bars) separately,
2006 Feb 22
3
2 barplots in the same graph
Hello, I have a very simple question about "2 barplots in the same graph". It seems quite easy, but I searched google for long time, haven't find solution. For example, I want one graph like: x1=seq(0,2,by=0.3) x2=seq(3,0,by=-0.1) barplot(x1,col="red") barplot(x2,col="green") It means if it's on the same graph, some bars are overlaped. So if the bars are
2005 Dec 19
1
help on barplots
Hello, I am a beginner with R and I would need some help with doing barplots. My problem is that I would like to include both diffrent colors of the bars and precence/absence of shading lines in the barplots. When reading in the help file about the "col" command it states: col: a vector of colors for the bars or bar components. By default, grey is used if 'height'
2011 Apr 04
2
gap.barplot doesn't support data arrays?
I am trying to make a barplot with a broken axis using gap.barplot (in the indispensable plotrix package). This works well when the data is a vector: > twogrp<-c(rnorm(10)+4,rnorm(10)+20) > gap.barplot(twogrp,gap=c(8,16),xlab="Index",ytics=c(3,6,17,20),ylab="Group values",main="Barplot with gap") But when the data is an array (for a bar plot with multiple
2006 Jan 05
4
ylim problem in barplot
R Version 2.2.0 Platform: Windows When I use barplot but select a ylim value greater than zero, the graph is distorted. The bars extend below the bottom of the graph. For instance the command produces a problematic graph. barplot(c(200,300,250,350),ylim=c(150,400)) Any help would be appreciated. Paul [[alternative HTML version deleted]]
2003 Dec 18
2
barplot & plot together
Dear colleges, I'm trying to combine a barplot and a plot in a single figure as follows: data <- 1:6 t <- barplot(data, axes=F) par(new= T) plot(t, data, type="b") However, as you can see in the example, the dots of the second plot do not fall in the midpoint of the bars in the first. Any trick for setting the 2 plots at the same scale? I have unsuccessfully tried: plot(t,
2011 Nov 11
1
barplot names.arg
Hello there, I have a question regarding bar plots. I am trying to plot the data from the following matrix as a barplot - # input data mdat <- matrix(c(0.1,0.9,0.9,0.1,0.5,0.5,0.45,1-0.45,0.6,0.4,0.8,0.2), nrow = 6, ncol=2, byrow=TRUE, + dimnames = list(c("Mon", "Mon", "Tues", "Tues", "Thurs", "Friday"), +
2003 Nov 04
2
more barplot presentation questions
Thanks to those who pointed me at the solutions to the legend overprinting the bars. I took the "easy" way of rescaling the y axis, picking the scaling factor for stacked bars is somewhat problematic but sufficient for my application. I have another couple of barplot questions: - Can I extend the major ticks on the Y axis across the page? Or both axes to form a grid? - A really
2011 Sep 14
2
Color barplots with a conditional?
I've made a barplot that has several bars. I'd like the bars to be colored according to the type of category they are in. Is there a way to put a conditional into the color parameter in barplot? i.e. if data$category[i] == 1, color the bar red Do I need to generate the coloring sequence before the plot code first? Thanks!! -- View this message in context: