Displaying 20 results from an estimated 6000 matches similar to: "New versions of lattice and grid"
2001 Dec 27
5
new lattice/grid
I just installed R-1.4.0 on my Win2k machine from SetupR.exe. Everything
seems to be fine with the base and recommended packages. However, when I
install the lattice and grid packages they do not seem to work. Everything
I try results in something like this:
Instruction 0x00543f06 refernced memory 0x00000000. The memory cannot
be "read".
and I am getting kicked out of R.
Has
2009 Jun 26
1
gradient fill of a grid.polygon
Dear list,
Following a recent enquiry, I've been playing with the idea of creating a
colour gradient for a polygon, using the Grid package. The idea is to draw a
number of stripes of different colours, using the grid.clip function. Below
is my current attempt at this,
library(grid)
rotate.polygon <- function(g, angle=0){ # utility function, works fine
matR <- matrix(c(cos(angle),
2009 Sep 02
2
combining grid.text, expression and variables
Dear R-users,
I am trying to use the grid.text and expression functions to display
several character strings and plotmath text on a viewport. Some strings
can include a variable portion (PI.limits in the following example),
which I thought could be implemented by combining the bquote and the
expression functions. Unfortunately, my expressions do not seem to be
evaluated. I would greatly
2009 Sep 24
1
Creating grid graphics with grid.layout
Hi,
I recently created a function which uses grid with a viewport
constructed with grid.layout() to position four plots on a plot device.
My question is what's the best way to programatically traverse each
element of the viewport?
The grid is 5x5 and the four plots occupy positions (2,2), (4,2), (2,4),
and (4,4).
Here's the viewport code:
pushViewport(
viewport(
2007 Dec 10
2
Viewport and grid.draw
Hi Deepayan and everyone,
I need to add a common legend to a group of latice
graphs, I have tried different ways using viewport and
grid.draw without success.
Here is what I have:
plot.new()
library(grid)
library('IDPmisc')
print(plot1, split=c(1,1,2,4), more=TRUE)
print(plot4, split=c(2,1,2,4), more=TRUE)
print(plot2, split=c(1,2,2,4), more=TRUE)
print(plot5, split=c(2,2,2,4),
2002 Nov 27
2
grid package and lines
Hello list,
When using the grid package in R 1.60 under windows grid.lines and
grid.line.to seem not to use the coordinate system as defined by the current
viewport whereas grin.points does. Am I doing something wrong?
Sten
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2003 Apr 27
2
bug and proposed fix in print.trellis 1.7.0 (PR#2859)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1678264062-154654637-1051422990=:2626055
Content-Type: TEXT/PLAIN; charset=US-ASCII
---1678264062-154654637-1051422990=:2626055
Content-Type: TEXT/PLAIN; charset=US-ASCII;
2011 Feb 15
1
gList and gTree methods of grid::grobX
Dear all,
In an attempt to draw fill patterns in grid graphics, I have
encountered a behavior of grobX that I cannot understand from the
documentation. Consider this,
library(grid)
## gTree
g1 <- gTree(children=gList(
rectGrob(0.5,0.5, width=unit(0.8,"npc"),
height=unit(2,"cm")),
circleGrob(r=0.3)), vp=viewport(0.5,0.5))
##
2003 Jun 24
1
Rcmdr active data set
Hi,
This seems a very basic problem, but I cannot seem to find the solution to
it.
I am trying to use Rcmdr on a data frame I created in my current R session.
More specifically, I did
x <- data.frame(matrix(0, ncol=3, nrow=5))
library(Rcmdr)
Now I would like to be able to edit, view and perhaps analyze x, but I
cannot seem to figure out how to make it active. Any hint will be welcome.
2009 Sep 28
2
dichromat, regexp, and grid objects
Dear list,
The dichromat package defines a dichromat function which "Collapses
red-green color distinctions to approximate the effect of the two
common forms of red-green colour blindness, protanopia and
deuteranopia."
library(dichromat)
library(grid)
colorStrip <-
function (colors = 1:3, draw = TRUE)
{
x <- seq(0, 1 - 1/length(colors), length = length(colors))
y <-
2002 May 15
3
Processing "vignette" files
Is there any way to process the "vignette" documantation files?
I have been looking at the bioconductor packages and most of them have
*.Rnw files in doc directories. They look like regular TeX but have
sections showing R code that seem to choke TeX.
Thanks,
Andy
__________________________________
Andy Jaworski
Engineering Systems Technology Center
3M Center, 518-1-01
St. Paul, MN
2012 Feb 16
2
Defining a viewport scale in {Grid}
Am just feeling my way into the grid library, and cannot figure out how to
define the plot limits. 3/5 of the example polygons below plot in the
default 0-1 range viewport. But when I try to redefine the viewport the
polygons plot in the same places. I also get the same result without
employing push/pop. (As you can see from the scale I'm trying to introduce,
I want to plot map polygons.)
2002 May 01
0
coefficient of determination on a nls regression
Antonio,
For linear regression we have the following identity
total SS = regression SS + residual SS (*)
where total SS is the sum of squares of observations around their mean,
i.e.
total SS = (n-1)*var(y)
and residual SS is given by the deviance function.
R-squared is defined as
R^2 = regression SS/ total SS = 1 - residual SS/total SS.
You can use this last formula
2003 Mar 13
1
small error in regression tests
I just r-sync'ed the r-devel version of R-1.7.0 (2003-03-11), compiled it
under RH-8.0 and ran make check. The reg-tests-2 fails at the very end
with the message stating that "object cement was not found". It looks like
this piece of the regression test is new to version 1.7. The the piece of
code generating the error is:
if(require(MASS)) {
teststep <- function(formula,
2003 Mar 13
1
small error in regression tests
I just r-sync'ed the r-devel version of R-1.7.0 (2003-03-11), compiled it
under RH-8.0 and ran make check. The reg-tests-2 fails at the very end
with the message stating that "object cement was not found". It looks like
this piece of the regression test is new to version 1.7. The the piece of
code generating the error is:
if(require(MASS)) {
teststep <- function(formula,
2002 Oct 28
1
R as a library
I would like to write a stand-alone application (in C) using R's
statistical and graphical capabilities. To make it more challenging I
would have to do it using Windows 2000 platform. I seem to remember that R
can be compiled into a library of subroutines and linked to an external
program. Is this true or is my memory playing tricks on me? I scanned the
FAQs and the "extensions"
2002 Feb 11
1
graph history
Hi everybody.
I was just wondering if this is a bug or I am simply doing something wrong.
Here is what happened:
(1) I typed windows() to get the graph menu bar
(2) I turned record on history menu
(3) I created a couple of plots
(4) I checked with PageUp and PageDown that I can scroll through them
(5) I saved the history to a variable, say, hhh
(6) I dumped hhh to a file called hhh.R
(7) I quit
2001 Dec 19
2
readline with R-1.4.0
Hi,
I am not sure if this is a bug, so I am posting it here. I also searched
the FAQ file for the readline string and did not find anything about the
behavior below.
I just successfully rsync'ed, compiled and tested R-1.4.0 on my RH 7.2
Linux machine. I encountered one problem though. When running ./configure
I noticed that I was getting errors from the readline library. Although
2002 Mar 05
2
identify in lattice
Does identify work in lattice plots? I tried this in R 1.4.1 (original
release) on my Win2000 machine with lattice 0.4-0 and grid 0.5-1.
> xyplot(y ~ x,
+ panel=function(x, y, ...){
+ panel.xyplot(x, y, col=2, pch=20, ...)
+ panel.lmline(x, y, type = "l")
+ identify(x, y)
+ })
I get a change of cursor after the data points and the LS line are plotted
2009 Jun 23
2
curvedarrow (some graphics problem)
Hi there,
I just wonder how to draw this kind of picture...
http://www.nabble.com/file/p24158796/b.jpg
http://www.nabble.com/file/p24158796/a.jpg
and this is what i have done
%%%%%
library(shape)
library(diagram)
curve(sin(x),bty="n",-8,8,yaxt="n",ylab="",xaxt="n",type="n",xlab="")
axis(1,labels=F,at=seq(-8,8,1))