Displaying 6 results from an estimated 6 matches for "l_setviewport".
2005 Jul 19
2
segfault with grid and null unit (PR#8014)
...60 (layout.c:69)
4 grid.so 0x060c484c calcViewportLayout + 172
(layout.c:464)
5 grid.so 0x060ca888 calcViewportTransform + 1296
(viewport.c:356)
6 grid.so 0x060be0a0 doSetViewport + 256 (grid.c:200)
7 grid.so 0x060be5ac L_setviewport + 76 (grid.c:311)
8 libR.dylib 0x00249318 do_dotcall + 652 (dotcode.c:770)
9 libR.dylib 0x0024cc7c do_dotcallgr + 80 (dotcode.c:1450)
10 libR.dylib 0x00263b24 Rf_eval + 1536 (eval.c:405)
11 libR.dylib 0x00265b1c do_set + 224 (eval.c:...
2006 Sep 05
4
Two submitted packages
...cpv <- current.viewport()
cpv$clip <- "off"
pushViewport(cpv)
panel.xyplot(x, y, ...)
popViewport()
})
## R version 2.4.0 Under development (unstable) (2006-08-14 r38872)
## gives the error message
Error in grid.Call.graphics("L_setviewport", pvp, TRUE) :
LOGICAL() can only be applied to a 'logical', not a 'character'
>
## Question 1. How do I place a trace() on grid.Call.graphics to make
## it stop and give me a traceback. I tried many variations of the
## command
## trace(grid:::grid.Call.graph...
2009 Feb 26
1
bottom legends in ggplot2 ?
Has anyone had success with producing legends to a qplot graph such that the legend is placed on the bottom, under the abcissa rather than to the right hand side ?
The following doesn't move the legend:
library(ggplot2)
qplot(mpg, wt, data=mtcars, colour=cyl, gpar(legend.position="bottom") )
I am using ggplot2_0.8.2.
Thanks in advance,
Avram
2006 Mar 15
1
How to get correct proportions/bounding box for latex figure?
...d response appears to be to add the
additional arguments
width=3.0, height=1.0, horizontal=FALSE,
onefile=FALSE, paper="special"
to the trellis.device(postscript...) call.
(The width/height arguments are required: without them
R gives an error
"Error in grid.Call.graphics("L_setviewport", pvp,
TRUE) :
Non-finite location and/or size for
viewport")
Fine, but how then do I know what width and height
are, and why should
I have to specify this? Unless I get them in exactly
the right ratio,
the figures are going to be stretched (including the
fonts, which will...
2008 Jun 06
3
Lattice: key does not accept German umlaute
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
library(lattice)
## works as expected
xyplot(1~1, key = list(text = list(c("Maenner"))))
## works as expected
xyplot(1~1, key = list(text = list(c("Maenner"))), xlab = "M\344nner")
## gives an error
xyplot(1~1, key = list(text = list(c("M\344nner"))))
Is this a bug?
TIA,
Bernd
-----BEGIN PGP
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame.
For instance
> ddTable <-
data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry"))
I want a dataset that is
Id Name
1 Paul
2 Bob
> unique(ddTable)
Will give me all 4 rows, and
> unique(ddTable$Id)
Will give me c(1,2), but not accompanied by the name column.