Displaying 20 results from an estimated 8000 matches similar to: "2 barplots in the same graph"
2006 Mar 15
2
Question about 'lables' & ect.
Hi,
I have a file named:
test_R.txt
aaa 2
bbb 5
ccc 7
sss 3
xxx 8
I want to have a plot:
test<-read.table("test_R.txt",col.name=c("Name","Score"))
par(mfrow=c(1,2))
barplot(test$Score)
name<-test$Name
axis(1,at=1:length(test$Name),labels=paste(name))
Q1, if you try the script above,you will get 5 bars, the axis only shows
"aaa",
2005 Nov 08
2
question about R graphics-example plot attached
---------- Forwarded message ----------
From: jia ding <dingjia at gmail.com>
Date: Nov 2, 2005 4:03 PM
Subject: question about R graphics-example plot attached
To: r-help at lists.r-project.org
Suppose I have the data set like this:
A 1
3
7
10
B 5
9
13
The numbers here actually is A or B's occurence positions.So it means,
position 1,3,7,10 is A;position 5,9,13 is B's occurence.
I
2005 Nov 09
1
accident modified dataset. How can I recovery it?!
I first try these command, it works quite well.
library(lattice)
data(cuckoos)
levnam <- strsplit(levels(cuckoos$species), "\\.")
BUT, i want to try :
levnam <- strsplit(levels(cuckoos$species), ".")
to see the difference.
They maybe I modified the data file, because when I try again, it says:
> data(cuckoos)
Warning message:
data set 'cuckoos' not found in:
2012 May 07
2
y-axis-problem (barplots)
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120507/f2dfaa17/attachment.pl>
2005 Jul 13
3
texture in barplots?
Dear R list,
For some reason I am unable to access neither search.r-project.org, nor
http://finzi.psych.upenn.edu/ so I cannot search the archives for a possible
answer (I Googled for this but didn't find anything).
Is it possible to draw barplots using a texture instead of colors, for a black
and white printer?
TIA,
Adrian
--
Adrian Dusa
Arhiva Romana de Date Sociale
Bd. Schitu
2006 Oct 13
3
Need help with barplots
I`ve read all the manuals and still couln`t find what is the difference
between the stacked and side-by-side barplots ? Could you explain me ?
[[alternative HTML version deleted]]
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'
2006 Oct 13
2
Multiple barplots on the same axis
Hi
R newbie here :)
I need to plot 3 barplots in the same axis, something like
|
| _ _ _
| | | _ | | _ | | _
| _ | || | _ | || | _ | || |
| | || || | | || || | | || || |
-+-----------------------------------------
| v1 v2 v3
Is there any documentation describing how to achieve that, and
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 =
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:
2013 Jan 31
2
Help with multiple barplots
Hello: I need to create a six barplots from data that looks pretty close to what appears below. There are two grouping variables (age and gender) and three dependent variables for each grouping variables. I'm not really familiar with trellis graphics, perhaps there is something that can do what I need there, i don't know.
The thing is: I *need* these to appear on one row, with some way
1999 Mar 25
1
Y-limits of barplots
Hello everybody,
I frequently have to produce barplots from variables the natural variation
of which is far away from zero. A typical range would be, say from -16 to
-28.
So, the following example should give an "honest" presentation:
x<-c(-20,-22,-21,-28)
barplot(x,beside=T,ylim=c(-18,-30))
But using anything else but "0" for the first element of ylim
leads to strange
2010 Jul 13
1
Barplots
Hi R,
I am examining the mean returns 10 days before and 10 days after a
event. Now I have several events the corresponding pre and post event 10
day mean returns... something like this
Pre_Start Pre_End Pre_Mean Pre_SD
Post_Start Post_End Post_Mean
Post_SD
1 2002-02-22 2002-03-08 0.004968027
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
1999 Aug 26
1
error bars on barplots
Hello again
I'm trying to put error bars onto a barplot. I've tried something that
Bill Simpson suggested a while ago, ie:
x<-c(1,2,3,4,5)
y<-c(1.1, 2.3, 3.0, 3.9, 5.1)
ucl<-c(1.3, 2.4, 3.5, 4.1, 5.3)
lcl<-c(.9, 1.8, 2.7, 3.8, 5.0)
plot(x,y, ylim=range(c(lcl,ucl)))
arrows(x,ucl,x,lcl,length=.05,angle=90,code=3)
#or
segments(x,ucl,x,lcl)
but I can't get it to work on a
2000 Oct 01
1
barplots with standard deviation
Hello!
I'd like to print certain kinds of diagrams with R. They should
look like barplots with besides=TRUE, but also have the variance
or standard deviation on every bar so that one could better
compare the bars. How could I apply this?
thanks for your help
Raoul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2005 Jan 21
2
axis placement with stacked barplots and the asp=1 parameter
Hi,
I'm currently using barplot to generate vertically stacked bar charts.
I'd like to be able to use the "asp=1" parameter with barplot(), but
doing this causes the y axis to be placed on the far left as shown in
the attachment demo.pdf.
I could get around this by using the negative values for the line
parameter of the axis() function. I'd rather not do this and imagine
2012 Mar 01
1
barplots of several variables with different number of categories
If I have two factors, v1 and v2 and I want to have a stacked bar graph of
the two variables side by side I could do
barplot(cbind(table(v1),table(v2)))
if v1 and v2 have the same number of categories.
If they don't have the same number of categories this won't work.
I'm sure there's a simple solution?
Thanks,
Jon
--
View this message in context:
2006 Feb 10
1
histogram error: 'x' must be numeric
Hi All,
I have problem to plot histogram.
What I did is:
export a .csv file from PSQL database's table.
so, inside this .csv file it looks like:
31.845
24.598
29.1223
24.715
23.1847
24.2321
25.2995
23.4261
30.7873
......
Then, I use command:
score<- read.csv('file.csv', header = FALSE,sep = ",")
hist(score, main = "score")
it gives error msg:
Error in
2006 Feb 21
1
help-ERROR: unknown GUI none from Statistics::R
Hi,
I download Statistics::R from
http://search.cpan.org/~gmpassos/Statistics-R-0.02/
I am going to combine R with perl.
but it keeps give the error msg: ERROR: unknown GUI none & stop running
script. I feel very strange, because previously it works.
my perl version is 5.8.6
my R version is Version 2.2.1
Is there anybody know about it?
Thanks a lot.
Nina
[[alternative HTML version