Displaying 20 results from an estimated 20000 matches similar to: "barplots with 2 different scales"
2010 Dec 09
2
RES: Barplot with "Independent" Lines Y axis
Oh sorry. An example say lots more than words. The data below, when
submitted to twoord.plot return the mentioned error. Rain are bars and Salt
lines, the bars appear and the error occurs with the salt data.
Point Rain Salt
Fev/03 365.6 13
Mar/03 235 18
Abr/03 115.1 18
Mai/03 47.4 18.75
Jun/03 112 15
Jul/03 156.8 17
Ago/03 66.1 15
Set/03 149.8 14
Out/03 167,1 11.5
Nov/03 269.3 17.5
Dez/03 283.7
2008 May 28
1
superposing barplots having different scales
Hello. I know how to make a bar plot in which a numeric y variable is
plotted against some grouping variable X (say, groups A, B, C) when this
grouping variable is subdivided into each of two subgroups; so the bars
would be: (group A subgroup 1) beside (group A subgroup 2), then (group B
subgroup 1) beside (group B subgroup 2), and so on. This is done using the
beside=TRUE argument in the
2012 Aug 22
3
Barplot with Secondary axis
Hi all,
I am trying to plot a bar chart and trying to plot a line as a secondary
axis as my scale is different for two y axis.
I am plotting a clustered bar chart by using besides = True option in
barplot function and my y coordinates are not plotted exactly at the center
on each two bars. Please help me.
I am pasting the code as follows.
x =
2010 Jun 01
5
Help barplots
Dear All,
I am newbie to R, and I wanted to plot a barplots with R and in such a way
that It will also show me position which I can plot on the bar line.
Here is my code that I am using to plot,
> chromosome <- c(40.2, 35.6, 36.1, 29.6, 31, 29.6, 31, 29.4, 28.2, 23, 23,
28.2)
>barplot (chromosome, col="purple", xlab="Oryza sativa Chromosomes", border
= NA, space =
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
2010 Sep 06
8
Over lay 2 scale in same plot
Hi Everyone,
I have two different data set in 2 different scale.
I want to plot these two data in the same plot
in their respective scale. So the plot will have 2 different scale.
I have added an image below to show how it should look.
does any bode has any idea how this can be done.
2 different y scale in same plot..??
http://r.789695.n4.nabble.com/file/n2528661/2scale_ovelay.jpg
Thanks in
2009 Apr 10
2
Two different scales for the same axis in the same plot.
Hello,
Could anyone tell me how to plot data on two different scales in the same axis in the same plot?
Here is my quandary:
The range of my X axis runs from 0 to 10, but the majority of my meaningful data
lies between 7 and 10. The data from 0 to 7 is essentially noise.
Is there a way for me to present my data such that the range from 0 to 7 takes
up a smaller amount of space on the graph
2010 Apr 09
2
error bars on barplot
Hi
I was hoping someone might be able to help me I have this data:
birdid timetaken numvisits ptachchoice time bold
1087 8 10 1 AM 0
1087 28 6 1 PM 0
1087 13 3 2 AM 0
1087 121 0 2 PM 0
1046 121 0 1 AM 1
1046 121 0
2009 Jun 09
2
is it possible to combine multiple barplots?
i am working with two sets of likert scale type (4 distinct values) data:
dataA <- rep(1:4, c(3,2,2,4))
dataB <- rep(1:4, c(5,4,3,2))
i can now (bar)plot both of these separately and compare the distributions.
plot(table(dataA), type='h')
plot(table(dataB), type='h')
is there a way to plot both of them in one plot, so that the bars for
value "1" (dataA: 3,
2010 Dec 09
1
Barplot with "Independent" Lines Y axis
Hi list. I'm plotting pluviometric (Rain) data as a barplot, and then adding
the salinity variable to this plot as lines. Obviously as these Y scales are
completely different the salinity appears at the lower part of the graph
extremely compacted. I need to plot the line at the exactly same area of the
barplot but with its own Y axis (at the right), so the salinity can use the
plot area
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
2011 May 25
2
barplot groups of different size i.e. height is NOT a matrix
Hello,
I want to use the function barplot do display several group of bars.
A standard example is given at this link
http://onertipaday.blogspot.com/2007/05/make-many-barplot-into-one-plot.html
But in their example the 4 groups of bars are all composed of 8 bars.
I want to be able do display the same kind of graph but where the number
of bars in each group are not the same. For example the
2008 Dec 06
1
plotting several datasets with different scales into same plot
Dear Miss R,
I wish to plot three datasets on completely different scales into one
single plot. Until now I use a complicated procedure, converting the data of
the second and third set into coordinates of the first plot and then adding
an extra axis. Is there a way to do this more simply...?
Thanking you and wishing you all an excellent Sunday!
Cheers, Georg.
*************************
Georg
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
2008 Aug 06
3
Incomplete x-axis in barplots
Hi everyone,
This is a graphics question, concerning presentation rather than
actually producing figures.
After much fiddling I've managed to create bar plots showing error
bars. I've put in an x-axis, which goes along all the bars, but
doesn't appear between the y-axis and the first bar. I've searched all
the resources I have access to but can't find anything addressing this
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:
2007 Aug 29
1
breaking the x-axis and having two different x-axis labels
Dear R community,
I have two questions concerning barplots that I struggle to resolve:
1) How can I break (interrupt) the x-axis (e.g.: have it display values from
-100 to -90 and 90 to 100 only)?
2) I overlay two horizontal barplots: one with negative values only and one
with positive values only: I would wish to mark the two datasets separately
on the x-axis (or some other way). If I use
2007 Mar 20
2
Ticks on barplots
Dear Gurus,
Using R 2.4.1 on Windows XP
I am generating stacked barplots of age-composition of fish populations
(Y) over time (X). As there are many years, not every bars is labeled.
When looking at the plot, it becomes difficult to associate labels with
their bars.
We have improved this a bit by using axis() to add a tickmark below each
bar. Can anyone suggest a way to draw ticks ONLY
2009 Jun 02
5
how to add value on the bar ploted by barplot()
how to add value on the bar ploted by barplot()?
and the axis label is too big, anyone know how to change their font , thanks
--
Xiaogang Yang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University Vancouver
[[alternative HTML version deleted]]