Displaying 20 results from an estimated 1000 matches similar to: "draw a box at 10% lower and upper in scatter plot"
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")
2009 May 07
1
data transformation using gamma
Hi R-users,
I have this code to uniformise the data using gamma:
> length(dp1)
[1] 696
> dim(dp1)
[1] 58 12
> dim(ahall)
[1] 1 12
> dim(bhall)
[1] 1 12
> trans_dt <- function(dt,a,b)
+ { n1 <- ncol(dt)
+ n2 <- length(dt)
+ trans <- vector(mode='numeric', length=n2)
+ dim(trans) <- dim(dt)
+ for (i in 1:n1)
+ { dt[,i] <- as.vector(dt[,i])
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))
2009 Jun 04
0
Instability with later 4.x kernels?
I have an Athlon with about 10 HDDs plugged in, primarily to do Disk2Disk
backups. Some drives are PATA, some are SATA, some are USB. A strange
concoction, but it's been relatively stable for some 4-5 years, despite
numerous upgrades and so on. It's been running CentOS 4 for a long, long time.
(years)
Recently, I've started to have problems with its stability, and after 2 weeks
2014 Mar 17
1
NFS Mount: files owned by nobody
This is one of those simple-been-doing-this-forever things that, for
some reason, has me stumped today.
When I try to NFS (v4) mount a directory, the user/group ownership shows
up as user "nobody" even though /etc/passwd has values for the correct
user names. How do I get it to mount with the correct user IDs?
Hume is the server, running CentOS 6, all updates applied, maybe a week
2014 Jun 25
2
How to enable EDAC kernel module for checking ECC memory?
In order to support ZFS, we upgraded a backups server with a new, ECC
motherboard. We're running CentOS 6 with ZFS on Linux, recently patched.
Now, I want to enable EDAC so we can check for memory errors (and maybe
PCI errors as well) but so far, repeatedly pounding on the Google hasn't
yielded exactly what I need to do to enable EDAC.
One howto was covering PCI and edac, but
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 <-
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
2010 Jun 04
2
horizontal and vertical line with arrow in a plot
Hi r-users,
I would like to add a plot of vertical line segment with arrow from (77,.6) to (77,0) and also a horizontal line segment with arrow from (0,0.6) to (77,.6) . So far this is what I have:
plot(sq, cdf, type="l", lwd=4,col="blue",xaxs="i",yaxs="i", xlab= "Rainfall (mm)", ylab= "Random no.",
main="Random number and
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
2009 Apr 22
1
Copula package
Hi R-users,
I would like to use the copula package.? I? the package plus the mvtnorm and try to run the example given, but I got the following message:
install.packages(repos=NULL,pkgs="c:\\Tinn-R\\copula_0.8-3.zip")
norm.cop <- normalCopula(c(0.5, 0.6, 0.7), dim = 3, dispstr = "un")
t.cop <- tCopula(c(0.5, 0.3), dim = 3, dispstr = "toep",
df = 2, df.fixed =
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 <-
2010 Jun 17
3
how to use sapply code
Hi,
I have this code here and try to use sapply code. But I got error message that I don't really understand to correct.
bt <- c(24.96874, 19.67861, 23.51001, 19.86868); round(bt,2)
alp <- c(2.724234, 3.914649, 3.229146, 3.120719); round(alp,2)
bt_alp <- data.frame(bt,alp)
sapply(bt_alp, function(bt,alp) ((bt_m/bt)^alp), bt_m = min(bt))
> sapply(bt_alp, function(bt,alp)
2010 Aug 20
7
which one give clear picture-pdf, jpg or tiff?
Hi,
I need some opinion. I would like to use graph that I generate from R code and
save it into word document. Which format is better? pdf, jpeg or tiff?
Thank you.
[[alternative HTML version deleted]]
2005 Jan 17
1
pairs: altering pch options on upper and lower panel of pairwise scatter plots
Hello,
I can't figure out how to use the upper.panel and lower.panel options in
pairs to alter the label options for either panel independently of the
other.
I would like to be able to show the pairwise scatter plots for the data
as they are (a vanilla pairs plot?) but separately to be able to label
the points according to a factor level. It is easy enough to do this
independently, but I
2009 Apr 20
2
problem with new version
Hi R-users,
I just change to the new version of R.? I just wonder why everytime?I run my function I will get this message:
> source(.trPaths[4], echo=TRUE, max.deparse.length=10000)
Thank you.
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 Feb 22
2
vloopkup or search function
Hi,
Does R has something similar to vlookup function in excel?
Thank you for the info.
[[alternative HTML version deleted]]
2009 Jan 28
2
extract positive pairs
Hi,
I have a data below and would like to search for positive pairs only and form a new data set.
???????????X1??? ??? ??? ?X2
31.0 9.0
11.0 1.0
1.0 0.0
0.0 0.0
8.0 0.0
0.0 0.0
2.0 2.0
18.0 3.0
0.0 0.0
0.0 0.0
0.0 0.0
10.0 0.0
6.0 0.0
...
The new data will be
X1'?? X2'
31.0 9.0
11.0 1.0
2.0 2.0
18.0 3.0
I tried to write the function as:
y1y2 <-?