Displaying 20 results from an estimated 6000 matches similar to: "Combining lines and barplot"
2012 May 23
3
barplot
Hey,
I am trying to create barplot of abundances over time (in days). The period
is over 171 days, so I don't want to have all labels there but only the
first day of the month. I couldn't find anything like this on the forum yet.
Mostrly it's about year to year data. 
This is the relevant part of my table:
datum	month	abundance
26/03/11	 March	1
27/03/11	 March	0
28/03/11	 March	1
2005 Aug 24
2
Remove NAs from Barplot
Dear List:
I'm creating a series of barplots using Sweave that must assume a
standard format. This is student achievement data and the x-axis must
include all grades 3 to 8. In some cases, the data for a grade (or more
than one grade) are missing in the vector math.bar, but are never
missing for the vector apmxpmeet. The following sample code illustrates
the issue.
Using the code below to
2010 Feb 05
1
About graphics
Hi,
I'm building a graph (barplot) in which the X axis label 
disappears.
I tried to use the option mgp of par() and I could not get 
the desired result.
Note that want the axis labels horizontally.
caes = c(37,20,19,16,75,103)
names(caes) = c("Pinscher", "Pastor \n Alem?o", "Poodle", 
"Rottweiller", "SRD", "Outros")
caess =
2010 Sep 10
3
(no subject)
Hello,
I'm trying to do bar plot where 'sex' will be the category axis and
'occupation' will represent the bars and the clusters will represent
the mean 'income'.
   sex     occupation   income
1  female          j             12
2    male          b            34
3    male          j             22
4  female          j            54
5    male          b           33
6
2007 Mar 02
1
barplot with different color combination for each bar
Hi,
I'd like to construct a somewhat unusual barplot. In "barplot" I use 
beside=F as I'd like to have stacked bars. The height of each bar is 
always the same. Information in my plot is coded in the color of the 
bar. I therefore need to be able so assign a different combination 
(or order) of colors to each individual stacked bar.
In the example below, the combination of
2012 Mar 12
2
barplot and NA
Am I wrong that barplot is supposed to just skip NAs, and continue with the rest of the data in a matrix column? That's how I read various posts on the subject.
But that's not what happens for me with R64.app (on a Mac, obviously). For example:
d0 <- as.matrix(c(2,3,4))
d1 <- as.matrix(c(2,3,NA))
d2 <- as.matrix(c(2,NA,4))
d3 <- as.matrix(c(NA,3,4))
barplot(d0)
barplot(d1)
2009 Oct 12
0
combining/overlaying boxplot and barplot
Dear all,
I would like to visualise when days are rainy or dry in bar/boxplots.
Therefore I've tried to combine raingauge data (boxplots) and percentage
of raingauges with 0mm measurements (barplot). See attachment
mei2004.pdf (if it came through).
I've come this far:
barplot(dcp0[monthindex], col="gray", border=NA, axes=F)
boxplot(t(dcpn[monthindex,]),
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]]
2007 Mar 13
3
Adding bars to the right of existing ones using barplot
I'm trying to create a barplot that has two sets of data next to each  
other.  I'm using barplot with the add=TRUE option, but this simply  
adds the second dataset on top of the first, obscuring it.  How do I  
add the new data to the right on the existing barplot so that both  
sets are visible?  I've been playing with all sorts of option and  
reading the list archives with no
2008 Dec 06
2
Barplot label
Dear all,
I am trying to make barplot from matrix with "beside=FALSE". I have 165 labels in my bar plot. When i plot the label horizontally below the barplot, then all labels are not appear in the plot due to lack of space. I used the following function:
barplot(t(bar), main="Barplot based on LCMS", ylab="RF membership Probability", 
  
2012 Aug 26
3
Aligning barplot
All, Consider:
BagA <- c(-1000,10,10,10,10,10,10,
          10,20,20,20,20,20,20,30,
          30,40,40,50,60)
BagB <- c(10,20,30,30,40,40,50,50,
          50,50,50,50,60,60,60,60,
          60,60,60,1000)
layout(c(2,1))
barplot(table(BagB))
barplot(table(BagA))
At this point, I'd like to arrange the plots so that the 10-bars are
aligned, the 20-bars are aligned, etc. So, I started
2007 Nov 04
2
Fw: Creating a barplot--advice needed
Subject: Creating a barplot--advice needed
> Advice needed: I am preparing a computer program to do a barchart. Advice 
> needed: Should I learn the lattice package, or try to? As a 
> non-statistician, much of the terminology is unfamiliar to me. "grouping 
> variable," "object of class trellis," etc. Or, is there a more easily 
> learned way to do it? It is a
2011 Jul 14
2
Problem with x labels of barplot
Hello everyone,
i am currently creating a barplot.
This barplot takes a vector of ~200 datapoints. 
Each datapoint represents one bar.
http://img96.imageshack.us/i/human1w.png/
(Ok as you see, it is not only one barplot, but a series of barplots).
Now, these barplots represent a human chromosome. This means they are
ordered. For instance bar number 50, means position 50 in the human
chromosome.
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
2013 Mar 26
3
barplot colors
Dear all,
I have a 2 by 2 matrix and I would like to do a barplot with it.  (so 2 bars with each having 2 stacks.).  I would like to have one colors per stack, so 4 different colors total.
The problem is that R is only given me 2 colors (the same two for the bottom stack and the same two for the top stack).  Any idea how I can do to have 4 colors? (without using ggplot2 preferably)
Here is my
2004 Jun 15
2
tapply/barplot (PR#6983)
Hello,
there seems to be a bug in tapply or barplot in R 1.9.0 that was not in =
earlier versions. The following code creates two nice barplots in 1.7.0, =
but the first one is bad in 1.9.0:
par(mfrow=3Dc(1,2))
x <- rep(1:10,10)
y <- runif(100,1,100)
z <- tapply(y,x,mean)
barplot(z)
barplot(as.numeric(z))
although is.numeric(z) returns TRUE!
Best regards,
Vidar Hjellvik
Institute of
2005 Jun 30
2
How to rotate the axisnames in a BARPLOT
Hi all,
- how can I do a barplot with rotated axis labels? I've seen the example for
just a plot in the FAQ, but I'll missing the coordinates to plot my text at
the right position beneath the bars. 
Is there any (easy?) solution?
- how can I set the y-axis in a barplot to logarithmic scale?
Many thanks in advance!
Best Regards
 Tom
--
2009 Feb 12
2
barplot() x axes are not updated after removal of categories from the dataframe
Hi all,
I'd be grateful for your help. I am a new user struggling with a barplot
issue.
I am plotting categories (X axis) and their mean count (Y axies) with
barplot().
The first call to barplot works fine.
I remove records from the dataframe using final=[!final$varname == "some
value",]
I echo the dataframe and the records are no longer in the dataframe.
When I call plot again
2011 Jul 01
1
Reverse legend label order in barplot
Hi list,
 
I've thus far not found a solution to my problem and hope someone can help.
I have a data matrix and wish to plot a stacked bar plot using barplot().
This is simple enough, but I have a problem with the legend labels being in
the reverse order from what I want.  The default appears to have labels
ascending bottom-to-top reflecting bottom-to-top sub-bars, but I would like
the
2004 Dec 06
3
barplot() options for intervals on axes
Hello,
I am a beginner with R. I read many tutorials and the FAQ but I cannot solve 
my problem. 
I use barplot() to view my graph. I try to get more interval marks on y axis.
I wasn't able to find options in 'help(barplot)' or 'help(par)' to do this 
with barplot().
I seek for another option to print y values on my bars like on the graph of 
the R homepage: