Displaying 20 results from an estimated 3000 matches similar to: "horizontal and vertical line with arrow in a plot"
2010 May 07
2
smooth line overlap with histogram
Hi r-users,
I would like to overlap a smooth line on the histogram. I tried using spline but it does not work.
sq <- seq(0,900,by=50)
sq.50 <- as.character(sq)
datobs <- sum_pos
## first, plot histogram
histo <- hist(datobs,breaks=sq,freq=F)
## extract counts from histogram and calculate the probability in
## each specified interval. Also check the length of the interval is
2010 Nov 22
1
need smooth cdf lines
Hi,
I would like to overlap the cdf curve for observed and generated data Here is
my code:
plot(cdf,main ="CDF of the sum for winter
season-Hume",cex.axis=1.2,xlab="Rainfall (mm)",
xaxs="i",yaxs="i",col=c("black","red"), lty=c(1,1),ylab="Cumulative
probability", xlim=c(0,800),lwd=1)
lines(ecdf(datobs))
2010 Mar 31
3
barplot and line
Hi r-users,
I have this data below and would like to plot a barplot overlap with a line.
This is my data:
> hist_50
pdf_obs pdf_gen.50
1 0.000000 0.000000
2 0.083156 0.125366
3 0.132196 0.158230
4 0.126866 0.149432
5 0.120469 0.127897
6 0.121535 0.104096
7 0.103412 0.082171
8 0.082090 0.063539
9 0.065032 0.048408
10 0.050107 0.036470
11 0.036247 0.027236
12
2012 Nov 12
3
arrange data
Dear r-users,
I have daily rainfall data from 1971 to 2000. I would like to extract november and december data only. I would also like to do column bind for november and december, therefore I would like to delete 31 December from december data so that the length of november and december are the same. Hope somebody can help me. I tried this below:
> kuantan.dt.1 <-
2012 Oct 06
1
arrange data
Dear r-users,
I have dailly rainfall data from year 1971 to 2000. I use aggregate to form monthly rainfall data. What I don't understand is that the data for the year 2000 become on the top, instead of year 1971. Here are some codes and output:
agg_dt1 <- aggregate(x=dt1[,4],by=dt1[,c(1,2)],FUN=sum)
> head(agg_dt1,20); tail(agg_dt1,20)
Tahun Bulan x
1 0 1 398.6
2010 Nov 25
1
overlap cdf plots and add colors and etc
Hi r-users,
I would like to overlap 2 ecdf plots.
I tried this below and it gives me two plots of ecdf but just both just in
black.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
plot(ecdf(datobs))
lines(ecdf(gam_sum_gen))
Then I try to add colors etc and also the legend but fail.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
2010 May 24
2
sum of certain length
Hi r-users,
I have this data below. I would like to obtain the weekly rainfall sum. That is I would like to find sum for day 1 to day 7, day 8 - day15, and so on.
year month day rain
1 1922 1 1 0.0
2 1922 1 2 0.0
3 1922 1 3 0.0
4 1922 1 4 0.0
5 1922 1 5 0.0
6 1922 1 6 0.0
7 1922 1 7 0.0
8 1922 1 8 6.6
9 1922 1 9 1.5
10
2010 Nov 22
1
plot start at origin
Hi r-users,
I would like my axes to intersect at (0,0). I tried xaxs="i",yaxs="i" but it
does not change anything. I hope anybody can help me with this problem. Here
is my code.
hist(datobs, prob=TRUE, main ="PDF of the sum of two
stations",col="yellowgreen", cex.axis=1.2,
xlab="Rainfall (mm)", ylab="Relative frequency", ylim=
2008 May 02
4
to extract particular date/data
Hi R-expert,
If I have this daily rainfall data, how do call a particular day?
Year,Month,Day,Amount
1900,12,22,1.3
1900,12,23,0
1900,12,24,0
1900,12,25,0
1900,12,26,0
1900,12,27,0
1900,12,28,0
1900,12,29,4.8
1900,12,30,0.3
1900,12,31,0.5
1901,1,1,0
1901,1,2,3
1901,1,3,0
1901,1,4,0.5
1901,1,5,0
1901,1,6,0
...
I used to use julian.date in S-Plus.
Thank you so much for your kind attention and help.
2010 Nov 11
3
overlap histogram and density
Hi,
Does anybody encounter the same problem when we overlap histogram and density
that the density line seem to shift to the right a little bit?
If you do have the same problem, what should we do to correct that?
Thank you.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0))
hist(datobs,prob=TRUE, main ="Volume of a catchment from four
2013 Jul 17
2
error message in gev
Hi r-users,
I would like to use gev and my data (annual rainfall ) is as follows:
> head(dat,20) A B C D E F G H I J
1 45.1 41.5 58.5 50.1 46.0 49.1 37.7 49.1 59.8 54.0
2 50.3 39.8 49.4 56.4 49.4 48.8 42.1 49.8 49.4 58.3
3 41.7 39.3 44.6 39.1 35.7 41.5 40.8 40.8 38.5 45.6
4 50.7 33.9 48.4 28.2 35.5 39.1 61.4 17.0 30.7 38.3
5 39.3 30.6 46.9 23.8 25.8
2012 Apr 04
2
extract data
HI,
I would like to extract data in a specific way. For example, the rainfall data
0,0,1.5,0,0, 3,1,2.5,0,0,0,0, 2.3,0,0,0, 2.1,1.4,0,0,0, 3,2,1,0,0,0...
data_1: 1.5, 2.3 ( a single nonzero data between zeros data)
data_2: 3.1, 2.5, 2.1,1.4 ( two nonzero data between zeros data)
data_3: 3,1,2.5, 3,2,1 ( three nonzero data between zeros data)
Thank you so much for any
2013 Apr 25
2
Missing data
Dear r-users,
I would like to investigate about how to fill in missing data. I started with a complete data and try to introduce missing data into the data series. Then I would use some method to fill in the missing data and then compare with the original data how good it is. My question is, how do I introduce missing data in my complete data systematically like for example every 10th data
2008 Jan 06
3
need help
Hi,
I'm Roslina, PhD student of University of South Australia, Australia
from school Maths and Stats. I use S-Plus before and now has started
using R-package. I used
to analyse rainfall data using julian date. Is there any similar
function that you can suggest to me to be used in R-package? Thank you
so much for your attention and help
[[alternative HTML version deleted]]
2010 Aug 04
2
barplot and x-axis font size
Hi all,
I would like to draw a side by side bar plot. How can I adjust the the font
size for the x-axis? Furthermore, I'm not sure what to write for 'at=?'. I
tried cex.axis and cex.lab but still fail. Here is my data and code:
> t(all)
0-100 100-150 150-200 200-250 250-300 300-350 350-400 400-620
obs_data 382.000 177.000 156.0000 93.0 69.0000 45.000
2013 Jan 21
4
compare and count data
Dear r-users,
I have these data below:
I would like to compare each column with a certain value and count how many in each column less than that specified value.
odd column (1,3,5) will compare with 1.61 and even column (2,4,6) will compare with 75 and I would like to count how many for each column.
I tried these below but it give me just one set of data.
critical <-
2008 Mar 31
1
solver in R
Dear R-users,
Is there any function in R that works similarly like solver in Excel. I have a set of daily rainfall data and I would like to estimate alpha and beta for the gamma function.
Here is my daily rainfall data:
[1] 0.2 1.2 0.0 0.0 0.0 0.0 0.0 0.6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.8 1.6 0.0 1.8 1.8 0.0 2.6
[24] 33.0 19.0 0.0 0.0 0.6 0.0 0.0 6.8 0.2 0.0
2009 Mar 26
2
sum to infinity
Hi r-users,
How do we evaluate the summation of (1/m!) from 0 to infinity (for example).
Any help is very much appreciated.
Thank you.
2009 Oct 12
1
Kolmogorov smirnov test
Hi r-users,
I would like to use Kolmogorov smirnov test but in my observed data(xobs) there are ties. I got the warning message. My question is can I do something about it?
ks.test(xobs, xsyn)
Two-sample Kolmogorov-Smirnov test
data: xobs and xsyn
D = 0.0502, p-value = 0.924
alternative hypothesis: two-sided
Warning message:
In ks.test(xobs, xsyn) : cannot compute correct
2010 May 28
4
vlookup in R?
Hi R-users,
I would like to search for the values of seq that match my rand values. In excel I will use =VLOOKUP(G2,$E$2:$F$32,2). For example, for rand=.262 it will give me approximately seq=120 and rand=0.964293344, seq=460 and etc.
E F G
cdf seq rand
0.00E+00 0 0.262123478
1.56E-03 20 0.964293344
1.55E-02 40 0.494827113
5.30E-02 60