Displaying 8 results from an estimated 8 matches for "dingjia".
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;positi...
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 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:
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
2006 Sep 04
1
merge files after cor.test
Dear All,
Suppose I have 2 files:
# first one : testid.csv
A
B
C
D
E
> (id<- read.table ("testid.csv",col.name=c("id")))
id
1 A
2 B
3 C
4 D
5 E
# second file is the result file I calculate from cor.text, which shows the
correlation coefficient.
> cor.value.t
1 2 3 4 5
1 1.0000000 0.2156213 0.31000492
2007 Feb 09
0
cluster "non-diet", "diet" example.
Suppose, we have 3 people called: Francis, Cedric and Nina. Base on what
they have eaten, we want to cluster people by "diet", "non-diet".
# original data file, named as filename "food.csv".
Francis|potato
Francis|chocolate
Francis|chocolate
Francis|milk
Cedric|vegetable
Cedric|vegetable
Cedric|potato
Nina|potato
Nina|chocolate
Nina|chocolate
Nina|potato
# Step 1: I
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",