Displaying 20 results from an estimated 2000 matches similar to: "Lines between panels in lattice"
2008 Sep 19
0
Fwd: Lines between panels in lattice
Forgot to send to the list.
Begin forwarded message:
> From: Saptarshi Guha <saptarshi.guha@gmail.com>
> Date: September 19, 2008 1:43:50 PM GMT-04:00
> To: Gabor Grothendieck <ggrothendieck@gmail.com>
> Subject: Re: [R] Lines between panels in lattice
>
> Certainly.
>
> x=cbind(runif(10),rnorm(10),c(rep(1,5),rep(2,5)))
>
2007 Dec 26
1
seekViewport error
Why does the seekViewport at the bottom give an error?
> xyplot(Sepal.Length ~ Sepal.Width, iris, group = Species, col = 11:13,
+ auto.key = TRUE)
> grid.ls(view = TRUE)
ROOT
GRID.rect.89
plot1.toplevel.vp
plot1.xlab.vp
plot1.xlab
1
plot1.ylab.vp
plot1.ylab
1
plot1.strip.1.1.off.vp
GRID.segments.90
1
plot1.strip.left.1.1.off.vp
2009 Sep 23
2
Crash due to extreme example
Hello,
I was trying this bit of code (i know it is an extreme case)
g=function(r){
if(r==1)
return(list(x=1))
else
return(list(x=g(r-1)))
}
For z=g(500), the code runs but when I print z i.e
>> z
I get
<environment: R_GlobalEnv>
*** caught bus error ***
address 0x1, cause 'non-existent physical address'
Possible actions:
1: abort (with core dump, if enabled)
2008 Nov 30
1
Rserve and creating a list of lists
Hello,
I have some code which generates lattice objects. The function
recieves serialized forms of the lattice objects which it then
unserializes and then adds to an ArrayList<REXP>.
REXPRaw rser = new REXPRaw( target ); //target contains the raw
serialized forms of lattice objects
rconn.assign("temp",rser);
REXP ret =
2008 Dec 12
1
Writing a Long across the network?
Hello,
I have to write single Long to a server written in java. The server
passes the input as
in.readLong() // it expects to receive 8 bytes
In Python, i can do it by sending struct.pack( "!q", value)
However, I have tried this
writeBin(length(x),con=conn,endian="big") #conn opened in binary
But the response on the server side is wrong, eg. 1 is received as
2008 Oct 06
1
Lattice and Axis height
Hello,
My plots consist of 2 rows, 1 column, many pages
I've managed to selectively turn of strips for the bottom panel and
roll my own strip for the top
par.strip.text = list(lines = c(0,3),cex=0.6)
I have my own custom prepanel function too.
What i'd like to do is turn off the x-axis for the top panel (since on
a given page the xlim is same for both top and bottom panel, but the
2007 Sep 29
1
Problem compiling R - "use of NULL environment is defunct"
Hello,
I downloaded R-2.5.1 and configured it on a AMD x86-74 running
Redhat. During compilation i get this error
configure --prefix=$HOME/mine
make
mkdir -p -- ../../../../library/methods/libs
make[5]: Leaving directory `/home/sguha/tmp/R-2.5.1/src/library/
methods/src'
make[4]: Leaving directory `/home/sguha/tmp/R-2.5.1/src/library/
methods/src'
make[4]: Entering directory
2007 Feb 13
1
Multidimensional Integration over arbitrary sets
Hi,
I need to integrate a 2D function over range where the limits depend
on the other e.g integrate f(x,y)=x*y over {x,0,1} and {y,x,1}.
i.e \int_0^1 \int_x^1 xy dydx
I checked adapt but it doesn't seem to help here. Are they any
packages for this sort of thing?
I tried RSitesearch but couldn't find the answer to this.
Many thanks for you help.
Regards
Saptarshi
Saptarshi Guha
2007 Mar 06
1
Waiting for Key input
Hi,
I have another question. Is there any command that waits for key input?
I am running R on OS X, so getGraphicsEvents doesn't work.
I have put some debug print messages in a function and would like to
pause the code every time the message is printed and continue on a
keypress.
Thank you
Saptarshi
Saptarshi Guha | sapsi@pobox.com | http://www.stat.purdue.edu/~sguha
2007 Feb 06
1
A question regarding cex and pch="." in lattice
Hello,
I'm using lattice and opened an X11 device with the following call
X11(width=5,height=5,pointsize=1)
I then ran the following code
library(lattice)
x<-rnorm(30,sd=2)
y<-runif(30)
xyplot(y~x,pch=".",col="black",cex=1)
If i remove "cex=1", not all the points are plotted. From ?X11, i
read,"pch='.' with cex=1 corresponds to a
2009 Sep 20
1
Return a list from a .Call but segfaults
Hello,
I call a function via .Call passing to it a raw vector(D) and an
integer(I)
The vector is a series K1,KData1, V1,VData1, K2, KData2, ...
where the integer K1 is the length of Data1 and similarly for Ki (wrt
Datai)(similarly for V*) There 2*I such pairs( (Ki,KDatai), (Vi,VDatai))
The numbers Ki(and Vi) are written in network order.
I am returning a list of I elements each element a
2007 Aug 05
2
Question regarding QT device
Hi,
After a few modifications in the makefiles, I successfully compiled
the Qt device (written by Deepayan Sirkar) for OS X 10.4.9 on a
Powerbook.
However when loading into R
If i remove this line from zzz.R in qtutils/R
grDevices::deviceIsInteractive("QT")
and then install
>library(qtutils)
loads fine and the QT() calls returns a QT window, however, if i
switch to
2007 Mar 06
1
Substituting functions in package - Lattice
Hi,
I'm trying to learn how a package works but substituting a
parituclart function with my own (basically the original one with
some debug statements).
The package is lattice and the method is "print.trellis" which is a
S3 method and is not visible.
To replace this, i sourced a file with the rewritten print.trellis,
and the old one was replaced.
However, i get this error
2006 Dec 05
1
A question on grid - grid.points not spaced properly
Hello,
How can i 'fix' the following output.
v=viewport(x=216/2, y=216/2,w=216, h=216,default.units = "bigpts")
pushViewport(v)
x=c(119,130,140,151)
y=c(124,124,124,124)
grid.points(x,y,size=unit(1,"bigpts"),default.units="bigpts",pch=".")
grid.points(x-2,y,size=unit(1,"bigpts"),default.units="bigpts",pch=".")
2006 Apr 28
1
Installing the Mac RGUI for OS X
Hello,
Having installed R 2.3 for OS X Tiger 10.4.6(PPC), i tried running
the new R.app, but it hangs (spinning beachball).
Moreover, i can't install the RGUI from within the R-2.3 DMG, - it
tells me i must have R 10.4 installed ! (I have 10.4.6)
R 2.3 runs successfully from the command line however.
I tried compiling from sources, but Xcode has this error(i.e it
can't locate
2011 Apr 29
1
The bin/R file - hardcoded paths
Hello,
I notice that e.g /home/sguha/lib64 is hard coded into the /bin/R file .
I nstalled R as ./configure --prefix=$HOME ...
What i need to do is ship the entire R distribution to remote nodes,
and run R. These are shipped to ephemeral directories
so I dont know the path ahead of time.
R_HOME doesn't change things either.
So i guess one cant run R on a system unless it's been
2011 Jun 25
2
On .. glibc detected home/sguha/lib64/R/bin/exec/R: realloc(): invalid next size: 0x000000000209e210 ***
Hello,
I'm trying to use rjson to parse a JSON object. The object can be found here
http://pastebin.com/np0s5hgM
(you'll probably need to add quotes around the content)
fromJSON returns the error
glibc detected home/sguha/lib64/R/bin/exec/R: realloc(): invalid next
size: 0x000000000209e210 ***
Is there a fix coming soon? Maybe CRAN should also have an outstanding
bug field -
2007 Jul 10
1
How to preserve data across function calls in a library package
Hi,
I am writing an R package with two functions in C++. So far
everything works.
Now, i would like to write a third function which would use a pointer
(it is a pointer to a class object) created by first function.
I tried placing this pointer outside of the function definitions
(i.e to make it global) but when called in the 3rd function i get
> *** caught bus error ***
address 0x0,
2007 Jul 10
1
How to preserve data across function calls in a library package
Hi,
I am writing an R package with two functions in C++. So far
everything works.
Now, i would like to write a third function which would use a pointer
(it is a pointer to a class object) created by first function.
I tried placing this pointer outside of the function definitions
(i.e to make it global) but when called in the 3rd function i get
> *** caught bus error ***
address 0x0,
2008 Nov 14
1
Splitting a lattice stripplot across several pages
Hello,
I have a stripplot with 200+ labels i.e i have network connections.
The y-axis are the server port numbers and am graphing the number of
packets in a connection. Roughly
stripplot(totpacks~portnum,data=network)
Due to the large number of server ports in my dataset, the y-axis
labels overlap so I would like to split it across several panels(1
panel per page) with about 25-50 per