Displaying 20 results from an estimated 10000 matches similar to: "trellis plot and postscript file (PR#1237)"
2006 Jul 19
2
trellis.focus with postscript device
Hello.
First: R 2.3.1 on Windows XP.
I am trying to add information (sample size) to the Trellis strips which
I am successful using the trellis.focus function with the default
Windows device. However, I typically use the postscript device as I use
LaTeX and \includegraphic for incorporating graphs into stat reviews.
Here's some example code (apologies for the lack of creativity and
2003 Apr 14
2
cannot create postscript files with trellis graphics inside a function
Dear People,
If I define
foo <-function()
{
x <- rnorm(500)
trellis.device(postscript, file="plot.ps")
densityplot(~x)
dev.off()
}
and call foo() then plot.ps is just a blank plot. However, if I extract
the lines inside foo and run them, ie.
x <- rnorm(500)
trellis.device(postscript, file="plot.ps")
densityplot(~x)
dev.off()
then plot.ps is created
2005 Mar 14
1
initialising trellis device {lattice}/ postscript
Background:
OS: Linux Mandrake 10.1
release: R 2.0.0
editor: GNU Emacs 21.3.2
front-end: ESS 5.2.3
---------------------------------
Colleagues
I am using:
trellis.device(postscript, file="../figures/name.ps")
.....code to generate the trellis display here ....
graphics.off()
to create a postscript from a working xyplot display.
The problem is that the postscript file appears to be
2004 May 18
1
Using pointsize with postscript trellis.device
I've been accustomed to specifying a postscript file and pointsize
like so:
trellis.device(postscript, file = "something.ps", pointsize = 8)
Using version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 9.0
year 2004
2001 Nov 29
3
Reset trellis plot backgroud color
Hello,
I run R on Windows 2000. When I load lattice library and plot some lme class
objects, the graphic window displays a dark-green color. Graphics look ok on
the screen, but lines and points become invisible whem I send the plot to a
printer because of the background color. Are there ways to reset the
background color? Both par(bg=) and windows() do not work. Any ideas?
Richard
2006 Mar 01
1
postscript bounding box in trellis/lattice plot is wrong ?
Hi, a problem involving postscript bounding boxes:
I'm composing three scatterplots into a single figure,
postsript for publication.
The individual scatterplots should be square, so
the overall figure should have a roughly 1:3 sort of
aspect ratio.
By default however, the overall figure comes out
nearly square,
and the scatterplots are stretched vertically.
I fixed this by adding
2002 Jan 03
1
type.convert() (PR#1236)
Full_Name: Don Sun
Version: 1.4.0
OS: Red Hat Linux release 6.2
Submission from: (NULL) (204.178.20.14)
> type.convert(letters[1:2],as.is=T)
stack imbalance in internal type.convert, 7 then 6stack imbalance in .Internal,
6 then 5
[1] "a" "b"
Error: unprotect(): stack imbalance
> version
_
platform i686-pc-linux-gnu
arch i686
os
2005 Jan 30
3
trellis graphics in loops
I have this awkward problem with trellis (lattice). I am trying to
generate some plots through loops but the .eps file is empty. When I
generate them in a list and print them outside the loop all is fine. this
is an example below:( nothing shows up in foo.eps, but all show up in
foo1.eps)
R vesion 2.0.1, lattice version 0.10-16, on a debian 2.6.8-1 kernel.
X <- data.frame(x=rnorm(10000),
2001 Jul 29
2
Trellis graphics and clipping
Hi again folks,
I seem to have got the trellis (lattice + grid) business
working basically OK, in that I can get my 5x5 array of
histograms laid out as they should be.
However, there is a behaviour I can't see my way round.
Even when displayed in the R Graphics Window, there is
some clipping (the extreme top, bottom, left and right
edges are not there, so that labels, and parts of numerical
2004 Jan 17
3
Multiple groupedData plots in a postscript file using a loop
Hallo!
I want to plot multiple grouped data in a postscript
file using a loop. As I use a loop no plot (or just
one empty plot) is generated. Here an example:
library(nlme)
data(Loblolly) # example data from nlme
postscript("PSFile.ps")
for (i in 1:1) # just as example
{
plot(Loblolly)
}
dev.off()
Result: Just an empty PSFile.ps.
(Withoput the loop it works.
May anybody help?
Karl
2004 Jun 24
2
More problems with lattice and postscript
Dear List members,
I am trying to produce some trellis graphics and to save them in a
postscript file but I only get blank files. R behaviour is certainly
strange because I use a loop to generate the graphics (see code below).
When I change the loop variable myself the postscript graphics are OK.
I am using R 1.9.1 (2004-06-21) on Debian GNU/Linux which I try to keep
updated on a daily basis. I
2005 Jan 26
2
postscript() and levelplot() in a for loop
Hi,
I like to produce a series of levelplot graphs in postscript file, so I put
the trunk of codes including postscript() and levelplot() in a for loop. The
codes work fine outside the loop, but only produce empty .ps file when being
put within the loop. Is it a problem associated with postscript() or
levelplot()? How to get around the problem? Many thanks!
Yan
[[alternative HTML
2005 Jan 10
3
Mixing portrait/landscape in a postscript file
Dear list,
I'm stuck with a little graphical problem. I'm generating several
lattice plots which are printed in a single postcript device opened by
> trellis.device(postscript, theme=canonical.theme("postscript",
color=F), file="an_phase2_graph.ps", paper="a4", pointsize = 10,
onefile=TRUE, horizontal=TRUE)
Everything works fine,but some of these
2005 Mar 22
2
lattice xyplot() postscript (?) problem in R 2.0.0
Dear all,
I work with R Version 2.0.0 on
Machine hardware: sun4u
OS version: 5.9
Processor type: sparc
Hardware: SUNW,Sun-Blade-1000
and I have a very simple data frame (called OR) with the following
variables:
> sapply( OR, class)
X ci FTyp
"factor" "numeric" "factor"
(In OR$ci there are some Inf-values. OR's
2005 Apr 26
1
Problem with clipping in Lattice, and closing a postscript device
I would appreciate any answer to the following two problems I am having with
the Lattice package.
First, in most instances of using Lattice, the produced graphs have some
clipping, usually at the borders of the encompassing rectangles. An example
of this is here: http://cs.uwm.edu/~vu/lattice.pdf where the clipping occurs
in the first half of the X axis.
Second, when printing to a postscript
2005 Aug 09
1
Saving trellis output to files in scripts...
With much help from Chuck Cleland, I was able to get xyplot to
generate the plot I wanted. I'm trying to write a script (that can be
read using source("file")) to create the plots I want and save them to
files.
If I type the following lines into the R (in interactive mode), the
correct plot gets saved into the file myfile.ps with a size of 4,096
bytes:
----------------------------
2001 May 26
1
lattice: postscript() false margins (PR#949)
Using lattice the posscript(file="") device gives false margins:
zz <- data.frame(
y=rnorm(100),x=rnorm(100),z=round(rnorm(100)),
g=as.character(rep(1:2,50)))
postscript(file="/tmp/tmp.ps")
xyplot(x~y|g,data=xx)
dev.off()
whereas dev.print(postscript,file="") works fine
dev.print(postscript,file="/tmp/tmp.ps")
2004 Nov 29
1
Call to trellis.focus(); thenpanel.superpose()
The following works fine with the x11 device, though it
may well be that an initial plot is overwritten. With a pdf
or postscript device, I get two plots, the first of which
still has the red border from having the focus, while the
second is the plot that I want.
library(lattice); library(grid)
plt <- xyplot(uptake ~ conc, groups=Plant, data=CO2)
print(plt)
2002 Feb 28
1
postscript output sideways
Hi,
My plots are all coming out sideways! If I do the following:
> postscript("plot1.ps",horizontal=TRUE,paper="letter")
> plot(ns,meanpl/maxvec)
> dev.off(2)
The output file has "ns" on the left and the "meanpl/maxvec" on the top!
It doesn't matter if I change the horizontal flag to FALSE.
I have noticed, however that If I create my own
2012 Jul 12
2
trellis margin sizes in absolute units
Dear R users,
I have a lot of experience with traditional R graphics, but I decided to turn to trellis as
it was recommended for spatial graphs by the sp package. In traditional R graphics
I always first set the size of the device region absolute units (e.g. mm) and then I
firmly fix the inner margins with mai and the outer margins with oma also in absolute units.
What is left from the device