Displaying 18 results from an estimated 18 matches for "pp2".
Did you mean:
p2
2011 Jun 07
2
ggplot2 and facet
...7961631 04R 1
3 2 -0.13795380 04R 1
4 3 -0.20726073 04R 1
> > sapply(times, class)
time error runway flight
"numeric" "numeric" "factor" "factor"
I want to plot this using ggplot2
library(ggplot2)
pp2 = qplot(times$time, times$error, times)
pp2 = pp2 + facet_wrap(~ times$runway)
print(pp2)
But when I try it, I get the error
Error in fix.by(by.x, x) : 'by' must specify valid column(s)
I get the same error if I make times$time a factor:
> > times$time = as.factor(times$time)...
2008 Mar 26
2
Range across a List
Hi R,
I have a list
> class(pp2)
[1] "list"
> length(pp2)
[1] 1244
It is in the below format
RIC Trade.Date Close.Price Currency.Code Convertion.Rate New.Price
ABCD.SZ 2008/02/29 15.30 CNY 0.1408 2.154240
ABCD.SZ 2008/01/31 15.27 CNY 0.1392 2.125584
ABCD.SZ...
2011 Jun 08
3
How to suppress factor labels
I am using ggplot2 to make a boxplot that overlays a scatterplot:
pp = qplot(time, error, data=times, size=I(1), geom="jitter", main=title,
ylab="Error (min)", xlab="Time before ON (min)", alpha=I(1/10),
color=times$runway,
ylim=c(-30,40))
pp2 = pp + with(times, facet_wrap(~ runway, ncol=2))
print(pp2 + geom_boxplot(alpha=.5, color="blue",
outlier.colour="green", outlier.size=1))
The x variable is a factor for every minute from 0:60. My problem is
that ggplot2 labels every factor value on the x axis, and they over...
2013 Oct 03
1
version comparison puzzle
Can anyone explain what I'm missing here?
max(pp1 <- package_version(c("0.99999911.3","1.0.4","1.0.5")))
## [1] ?1.0.4?
max(pp2 <- package_version(c("1.0.3","1.0.4","1.0.5")))
## [1] ?1.0.5?
I've looked at ?package_version , to no avail.
Since max() goes to .Primitive("max")
I'm having trouble figuring out where it goes from there:
I **think** this is related to ?xtfrm ,...
2005 Sep 30
2
Creating an array [0 to 101] of a list
Hi
I looked, but I didn't find it:
I need an array [0 to 101] where each element is a list (the result of
Kest in spatstat).
I.e. I want to do:
A[2] <- Kest(pp1)
A[3] <- Kest(pp2)
...
A[101] <- Kest(pp100)
How can I create A ?
Rainer
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Department of Conservation Ecology
University of Stellenbosch
Matieland 7602
South Africa
2006 Apr 11
1
problems with assign
Hello.
I have n files in a directory: file1, ..., filen.
I read them with the following commands:
list=scan(file="list",what=list(nom=""))
# in the file list, I have all the filenames.
n=length(list[[1]])
for (i in 1:n){
aux <- paste("p",i,sep="")
assign(aux, as.matrix(read.table(list[[1]][i])))
}
R creates the matrices p1,p2,...,pn.
I want
2012 Sep 14
0
problem with user defined panel function in xyplot
...ta(ts01), y2)
?
#vertices for
area under y1
mat1 <-
cbind(c(index(ts01)[1], index(ts01), index(ts01)[length(index(ts01))]), c(ymin,
coredata(ts01), ymin))
?
#vertices for
area under y2
mat2 <-
cbind(c(index(ts01)[1],index(ts01), index(ts01)[length(index(ts01))]), c(ymin,
y2, ymin))
?
pp2 <-
as(mat2, "gpc.poly")
pp1 <-
as(mat1, "gpc.poly")
?
m <-max( (max(coredata(ts01)) - bl)/3,
abs(min(coredata(ts01)) - bl)/3)
m1 <- bl+m
m2 <- bl+2*m
?
##### cutting the blue poly above the baseline
# poly above the baseline
s1 <- setdiff(pp1, pp2)
y2...
2012 May 02
4
[PATCH 0/4] fish: Allow the glob command to expand device patterns (RHBZ#635971).
This patch set fixes a two year old bug in guestfish, namely that the
'glob' command does not expand /dev/* patterns.
https://bugzilla.redhat.com/show_bug.cgi?id=635971
Rich.
2008 Jan 15
2
Looking for simpler solution to probabilistic question
Hi
I have two processes which take with a certain probability (p1 and p2) x
number of years to complete (age1 and age2). As soon as thge first
process is completed, the second one begins. I want to calculate the
time it takes for the both processes to be completed.
I have the following script which gives me the answer, butI think there
must be a more elegant way of doing the calculations
2005 Apr 09
4
make check-all fails (PR#7784)
Full_Name: Ed Borasky
Version: R-beta 2.1.0 2005-04-08
OS: Linux 2.6.11 GCC 3.3.5
Submission from: (NULL) (24.21.57.139)
I downloaded the latest R-beta tarball and did a build with the default options.
OS is Linux 2.6.11 and compiler is GCC 3.3.5. "make check-all" failed with the
following message:
make[3]: Entering directory `/home/znmeb/R-beta/tests'
running code in
2004 Jan 23
0
SAMBA and active directories
Good Morning
We are planning a Windows 2003 migration project through out our company and
we are currently using SAMBA on the following platforms. to communicate with
our NT servers,
MPE/ix 6.5 pp2 and 7.0
HP-UX 11i
Linux RedHat 9
Can you please advise which SAMBA version should we install for each of the
above O/S's and where we may download these from?
Many Thanks
David Jason
Senior Systems Administrator
Metropolitan Health Group
Cape Town
Ph Office + 27214804784
Fax +27214...
2012 Sep 13
6
[newbie] aggregating table() results and simplifying code with loop
Dear all,
I'm looking for primary help at aggregating table() results and at
writing a loop (if useful)
My dataset ( http://goo.gl/gEPKW ) is composed of 23k rows, each one
representing a point in the space of which we know the land cover over
10 years (column y01 to y10).
I need to analyse it with a temporal sliding window of 5 years (y01 to
y05, y02 to y06 and so forth)
For each period
1997 Nov 20
3
defunct smbd processes on SGI
Hello
We are running samba on SGI/SUN/HP fileservers.
We saw a problem on the SGI fileservers.
After a while a lot of defunct smbd deamons were hanging and
occupying the slots in the process table.
We saw the problem with IRIX 5.2 and samba 1.9.16p11 and
IRIX 6.2 and samba 1.9.17.p4 .
Has anybody seen this problem before? This is a serious problem, because
the smbd daemons are filling the
2016 Aug 05
2
¿Qué hace as.numeric()?
...identemente tiene distintas estructuras en el archivo de base, de
las cuales R toma una inoportuna para mi. Si alguien tiene una idea al
respecto, es bienvenida.
Por ejemplo, parece que sería de utilidad poder indicar el parámetro
sep="," cuando, una vez importados los datos, indico:
pami$PP2 <- as.numeric(pami$PP) # o
pami$PP2 <- as.numeric(as.character(pami$PP))
porque en ambos casos, devuelve NA.-
Como concepto, me sirvió ver:
https://www.r-bloggers.com/using-r-common-errors-in-table-import/ y también:
https://martinsbioblogg.wordpress.com/2013/03/24/using-r-reading-tables-that...
2004 Oct 13
4
incomplete function output
Dear R users,
I have a function (below) which encompasses several tests.
However, when I run it, only the output of the last test is
displayed. How can I ensure that the function root(var)
will run and display the output from all tests, and not
just the last one?
Thank you,
b.
root <- function(var)
{
#---Phillips-Perron
PP.test(var, lshort = TRUE)
PP.test(var, lshort = FALSE)
2016 Aug 04
2
¿Qué hace as.numeric()?
En general lo que yo uso en esos casos es as.numeric(as.character(X))
No se los términos correctos pero los factores aunque se muestren con los
nombres de las diferentes clases, internamente son clases separadas que se
nombran como enteros por ejemplo del 1 al n de clases. Cuando usas
directamente as.nuemric sobre un factor, este toma los numeros de las
clases y no el valor de clase.
Fijate en
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...tderr, _("glob: guestfs_glob_expand call failed: %s\n"),
+ argv[i]);
+ goto error0;
}
/* If there were no matches, then we add a single element list
* containing just the original argv[i] string.
*/
if (pp[0] == NULL) {
- char **pp2;
-
- pp2 = realloc (pp, sizeof (char *) * 2);
- if (pp2 == NULL) {
- perror ("realloc");
- free (pp);
- goto error0;
- }
- pp = pp2;
-
- pp[0] = strdup (argv[i]);
- if (pp[0] == NULL) {
- perror ("strdup");
- free (pp);
- goto error0;
- }
- pp[1] = NULL;
+ cha...
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...BKF1c9QZ(%OIVoL%(|)p)4H(Sd
zOJ^9i&q6lg4SdUEFL%HEEfMzo$vg?^8qSe)w$sPXDJD9L0)c9Ib&Run4k$nMY%Hzz
zDAw5#sLH2z+r|XD6Eg^)eJ?GacEk~sIy$_1^&^Cnb;f{B5!1nl0v0z&knV3st+?Lx
zfzvC|PiDC0NA2wCDyFq9 at 2=_&j5XsAa~a3tO+Q7#k_a^1M^Ac)DK_LeLex at 0-#he$
z>vWP4Blk(|XufIH9B`7+L&~P6F4yTQkj_Ivhd)Pp2!;2g_lJ+{)-FZ*+%nv-q$=a{
zT^1!C7Tnb{+7dS*0dyaL7iVe{R|H%6x9oTYJ+)Xez=1*lBbGVi-6u1X9}YWt>|WtB
zHQ9N%_!z_B$wt$zt5t3Gsg2{uR^&k4j@>$tO-4cRH1YNIy!tO5paHHL1zg1WFd1>K
zm&FZEH^58PPv$!f6+alt{~USvr|9nclGfI at Xi$2C005KmRjM^qT~3ZH+sKh%{M`#Q
z>pYOAIldA<nw6pS+&ziO0 at YAAW-UHdLy=klr+81#...