Displaying 20 results from an estimated 10000 matches similar to: "lattice: two grouping variables, one controls 'col', the other 'pch'"
2006 Aug 29
2
lattice and several groups
Dear R-list,
     I would like to use the lattice library to show several groups on 
the same graph. Here's my example :
## the data
f1 <- factor(c("mod1","mod2","mod3"),levels=c("mod1","mod2","mod3"))
f1 <- rep(f1,3)
f2 <-
2008 Jun 16
2
Lattice: Superpose bwplot and dotplot [newbie question]
Hello everyone
I have dataset containing a monetary value (ABS) and two factors (Fct,
Group).  I am able to create useful using:
bwplot(ABS~Group|Fct)
and
dotplot(ABS~Group|Fct)
Question: What do I have to do to overlay the dotplot with the bwplot (same
data set)?
I've found a couple of posts that hinted at the possibility of doing that,
and checked the panel.superpose() help, but the info
2006 Mar 30
2
custom strip in lattice ignoring plotmath expressions for all but style = 1 (PR#8733)
Full_Name: Ben Tyner
Version: 2.2.0
OS: i686-pc-linux-gnu
Submission from: (NULL) (128.210.141.240)
My appologies if this has already been fixed, but I didn't see it in the
tracking system yet so I thought I'd report it. Demonstration:
xyplot(Petal.Length ~ Petal.Width | Species, iris,
       strip = strip.custom(style = 1,
                            var.name = expression(beta),
      
2009 Oct 06
1
how to output profile plots for groups using lattice package
Dear R users,
I am trying to have an xyplot of a data set which has the following
variables:
case (n=10,20,30)
parameter (parm=a,b)
group (grp=g1,g2)
y (y values)
x (x=2,4,8)
My plot should be parameter by case such that I have 2 rows (each row= each
parameter) and 3 columns (each column=each case). My R-code is as follows
but I am not able to get what I want to:
tp1.sim <- xyplot(y~ x | case
2002 Jan 29
3
lattice dotplot and graphic devices on Windows
I am using R1.4.0 on WindowsNT (the precompiled version from Brian Ripley's
website) and the lattice package (version details are at the end of this
message).
After producing a lattice dotplot, I want to insert the graph into a
MicrosoftWord document. With "ordinary" R-graphics, I have done this
successfully by copying the graph as a metafile to the clipboard and pasting
this into my
2018 Jan 10
5
OpenBLAS in everyday R?
I didn't do the compile; is there a way to check whether that was used? 
If not, I'll inquire with our sysadmin and report back.
In any case, my suggestion was motivated by the fact that some parts of 
R use OpenMP while others do not, in the hope that the former could have 
their OpenBLAS omelet without breaking the OpenMP eggs, so to speak.
On 01/09/2018 06:41 PM, Keith O'Hara
2018 Feb 06
4
rJava garbage collect
Hi
Does rJava offer a way to instruct the JVM to perform a garbage collection?
Regards
Ben
2006 Oct 30
3
correlation structure in lme without random effect
I was hoping to fit along the lines of
g<-gl(20,5)
y<-runif(100)
fit<-lme(fixed=y~g,correlation=corAR1(0,~1|g))
But I get the error "Incompatible formulas for groups in "random" and 
"correlation""
Any help would be greatly appreciated.
Ben
2024 Mar 01
3
installation: while running make, unable to run pdflatex on 'NEWS.tex'
A kind member of R-core suggested this is due to a misconfiguration on 
my system, and to post it to the mailing list for troubleshooting.
When trying to build R version 4.3.3, in at least two places during the 
process it gives LaTeX errors of the form:
(example 1)
    you should 'make docs' now ...
    make[1]: Entering directory '/home/btyner/R-4.3.3/doc'
    creating
2019 Dec 06
1
Error in close.connection(p) : ignoring SIGPIPE signal
Andreas,
How right you are! Still, I find it curious that in the context of the 
while(TRUE) loop, I am allowed to do this 653 times, with failure on the 
654th attempt. Perhaps there is something asynchronous going on? If I 
eliminate the looping, it does indeed fail (as expected) on the first 
attempt to close the pipe.
Regards
Ben
On 12/6/19 2:04 AM, Andreas Kersting wrote:
> Hi
2019 Dec 06
2
Error in close.connection(p) : ignoring SIGPIPE signal
Not sure if this is a bug, so posting here first. If I run:
 ?? cnt <- 0L
 ?? while (TRUE) {
 ? ? ?? cnt <- cnt + 1L
 ? ? ?? p <- pipe("echo /dev/stdin > /dev/null", open = "w")
 ? ? ?? writeLines("foobar", p)
 ? ? ?? tryCatch(close(p), error = function(e) { print(cnt); stop(e)})
 ?? }
then once cnt gets to around 650, it fails with:
 ?? [1] 654
 ??
2009 Jul 02
1
Getting identify() to work with lattice::cloud()
I don't seem to be able to put any syntax into identify() that gets 
it to work with "lattice" cloud() graph:
layout(1)
require('lattice')
cloud(g3 ~ g1 + g2, data=gapp, col = "blue",
   xlab='G1 Score', ylab='G2 Score',
   zlab='G3 Score', main='3D Plot for Applicants')
identify(gapp[,2:4], labels=gapp$ID)
Here g1 is gapp[,2], g2
2005 Apr 05
2
future update to loess
Background: I'm a student of Prof. Cleveland at Purdue University.
Eventually, we'd like to release a new version of the loess routine in R.
For starters, this implementation would have support for local polynomial
degree 3, better control over the number of cells in the KD tree, and
perhaps a better solution in higher predictor dimension.
I see that Prof. Ripley was responsible for
2020 Jan 19
2
rpois(9, 1e10)
So imagine rpois is changed, such that the storage mode of its return 
value is sometimes integer and sometimes numeric. Then imagine the case 
where lambda is itself a realization of a random variable. Do we really 
want the storage mode to inherit that randomness?
On 1/19/20 10:47 AM, Avraham Adler wrote:
> Maybe there should be code for 64 bit R to use long long or the like?
>
> On
2007 Oct 10
2
corMatrix crashes with corARMA structure (PR#9952)
Full_Name: Benjamin Tyner
Version: 2.6.0 RC 2007-10-01 r43043
OS: WinXP
Submission from: (NULL) (171.161.224.10)
platform       i386-pc-mingw32                       
arch           i386                                  
os             mingw32                               
system         i386, mingw32                         
status         RC                                    
major         
2007 Jan 30
2
lattice: how to get 'lattice.theme'
I'm using lattice 0.14. As of version 0.5 the Changes says there is a 
global list called 'lattice.theme'. How can I access this? I have tried 
many ways, including
options(lattice.theme)
lattice.getOption("lattice.theme")
get("lattice.theme", envir = .LatticeEnv)
getFromNamespace("lattice.theme", "lattice")
2006 Jul 26
2
mean(NA) returns -(1+.Machine$integer.max) (PR#9097)
Full_Name: Benjamin Tyner
Version: 2.3.0
OS: linux-gnu (debian)
Submission from: (NULL) (71.98.75.54)
> mean(NA)
returns -2147483648 on my system, which is -(1+.Machine$integer.max) 
> sessionInfo()
Version 2.3.0 (2006-04-24)
i686-pc-linux-gnu
attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"    
2024 Mar 01
2
dput(..., file = stderr())
Curious to know if this warning is expected behavior, and if so, what is 
the recommended way instead:
     > dput(letters, file = stderr())
    c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l",
    "m", "n", "o", "p",
2020 Jan 19
2
rpois(9, 1e10)
????? This issue arose for me in simulations to estimate confidence, 
prediction, and tolerance intervals from glm(., family=poisson) fits 
embedded in a BMA::bic.glm fit using a simulate.bic.glm function I added 
to the development version of Ecfun, available at 
"https://github.com/sbgraves237/Ecfun".? This is part of a vignette I'm 
developing, available at 
2011 Sep 12
1
nested anova<-R chrashing
Hi,
I tried to do a nested Anova with the attached Data. My response 
variable is "survivors" and I would like to know the effect of 
(insect-egg clutch) "size", "position" (of clutch on twig) and "clone" 
(/plant genotype) on the survival of eggs (due to predation). Each plant 
was provided with three different sizes of clutches (45,15,5) and had