Displaying 16 results from an estimated 16 matches for "jafarikia".
2009 Jul 27
3
numbers on barplot
Hello all,
I have this simple barplot code:
ifn <- "id.dat"
dat <- read.table(ifn)
ofn <- "id.png"
bitmap(ofn, type = "png256", width = 30, height = 30, pointsize = 30, bg =
"white",res=50)
par(mar=c(5, 5, 3, 2),lwd=5)
par(cex.main=1.6,cex.lab=1.6,cex.axis=1.6)
names(dat)<-c("NumberOfPeople","Average")
2010 Feb 17
2
array question
Hello All:
If I do have:
x = (2, 4, 5, 5, 6, 4, 5, 2, 1)
y = (9, 11.5, 12.5, 13, 14, 19, 20, 21, 22)
I wanted to find a simple function in R which calculates the averages of X
and Y for every 4 unit increase of Y. The results should look like:
x = (4, 6, 3) #where (2+ 4+ 5+ 5)/ 4 = 4 and ...
y = (12, 14, 20.5) #where (9+11.5+12.5+13)/ 4 = 12 and ...
Thanks,
Mohsen
2006 Sep 27
2
Histogram
Dear all,
I want to design a histogram and I need to have the frequency at certain
points. For example I have the following 2 columns:
*X Y*
0.1 25
0.4 22
0.45 11
0.55 21
I want the chart to have 4 columns. First column is from 0.0-0.1 (on X) and
frequency is 25. Next colum is wider and form 0.1-0.4 with 22 frequency.
Next column is narrow with 11 frequency and the last column is
2007 Feb 21
1
Chi-Square test
Hello all,
I am doing a Likelihood Ratio (LR) test in my simulation and I have a vector
LR values (each with 1 degree of freedom) at the end of my simulation.
Can anybody tell me how I can write a 'R' code which gives me the p-value
for each of those LR values.
Thanks
[[alternative HTML version deleted]]
2010 Oct 01
1
mhtplot?
Hello All:
I was wondering why many plot options are not working with mhtplot. I could
not find much info about this function on the web too. Any comments, any
detailed manual ...
Thanks,
MJK
[[alternative HTML version deleted]]
2009 Aug 13
1
reading a string
Hello All:
I am having the following data file named "data.dat"
Number of people
Number of pets
Age of trees
ifn <- "data.dat"
dat <- read.table(ifn)
colnames(dat)<-c("Variables")
I want R to read all these in a string but when I ask R to read these,
it gives me error because there more than one word in each line. Any
comments to solve this problem?
2010 Sep 29
1
graph margins
Hello All,
I am drawing a graph having 18 small graphs inside using par(mfrow = c(6,3))
command. My problem is how to specify the margins of the whole 18 graphs. I
used par(mar=c(6.5, 6.5, 1.5, 1.5)) for each graph separately already but it
does not left any margins for the 'mtext()' for the margins of the whole 18
graphs. Any comments please.
Thanks,
MJK
[[alternative HTML version
2007 Feb 23
2
Wrinting integers in a matrix faile
Hello everyone,
I am using the following program to get the p-value of some numbers
(column 'LR' of the data.dat file). I want to write the 1st and 2nd
column of the output file (data.out) as an integer while the program
change them to double. Could anybody please tell me how I can write
the code which writes the values of the first two columns as integer?
Thanks
library ('MASS')
2007 Feb 25
1
Writing integers in "write.matrix" function
Hello everyone,
I am using the following program to get the p-value of some numbers
(column 'LR' of the data.dat file). I want to write the 1st and 2nd
column of the output file (data.out) as an integer while the program
change them. Could anybody please tell me how I can write
the code which writes the values of the first two columns as integer?
For your convenience, I have attached the
2009 Aug 06
2
Ylim
Hello All:
Can anybody tell me what is the problem with my program please. I have an
error message as appears below.
My program is:
ifn <- "Jul08_09.LM"
data <- read.table(ifn)
ofn <- "Jul.png"
bitmap(ofn, type = "png256", width = 30, height = 30, pointsize = 30, bg =
"white",res=50)
par(mar=c(5, 5, 3, 2),lwd=5)
2009 Jul 30
1
reading a file
Hello there,
I have the following info in MyData:
01 0.40
02 0.40
03 0.40
04 0.35
05 0.34
06 0.33
I want to read them using the following code:
ifn <- "MyData"
dat <- read.table(ifn)
names(dat1)<-c("Code","M")
names(dat2)<-c("Code","M")
I want to have the first three lines in
2010 May 12
2
plot error
Hello All:
I am having the following error message when I increase the resolution
("res=30" to "res=350") of my graph:
Error in plot.xy(xy, type, ...) : ignoring SIGPIPE signal
Calls: plot -> plot.default -> plot.xy
Execution halted
Here is the code:
ofn <- "MAY11.png"
bitmap(ofn, type = "png256", width = 21, height = 30, pointsize = 30, bg =
2010 May 13
1
ESP Ghostscrip ...
Hello All:
Could anybody tell me please what is the meaning of this error message:
ESP Ghostscript 815.02: Unrecoverable error, exit code 1
Error in plot.xy(xy, type, ...) : ignoring SIGPIPE signal
Calls: plot -> plot.default -> plot.xy
Execution halted
My code has to go to 18 loops for three times and in each loop it has to
read a file which is 100-300 Megs. It always crashes at loop 14
2006 Oct 02
5
Barplot
Hello,
I have used the following data to draw my barplot:
BL LR Q
36.35 1.00 1.92
36.91 4.00 0.00
25.70 6.00 0.00
34.38 3.00 1.92
05.32 0.50 0.00
BL<-c(36.35, 36.91, 25.70, 34.38, 05.32)
LR<-c(1.00, 4.00, 6.00, 3.00, 0.50)
Q<-<(1.92, 0.00, 0.00, 1.92, 0.00)
barplot(dt$LR, main='LR Value', col='orange', border='black',
2007 Feb 26
0
Barplot Graph
Hello everyone:
I want to draw a Par plot but I don't know how to choose different pattern
of of colors for different bars to be able to distinguish them in a black
and white print. I want some kinds of patterns on the bars such as '///' or
'\\\' or …
Suppose I have the following data in the R.dat file:
1.29 22.43 1.92
5.08 18.70 0.00
2.19 33.69 1.92
2.95
2010 Feb 12
0
Y average in plot
Hello All:
Can somebody please tell me how I can have the average of 'y' on the graph
for different values of 'x in the following code?
ofn <- "xy.png"
bitmap(ofn, type = "png256", width = 21, height = 30, pointsize = 30, bg =
"white",res=50)
ifn <- sprintf("xy.txt")
data <- read.table(ifn)
names(data) <-