Displaying 20 results from an estimated 10000 matches similar to: "Jpeg files dynamically but multiple figures (e.g xyplot (grid/lattice))..."
2010 Oct 28
2
How to enable Arial font for postcript/pdf figure on Windows?
Hi,
I need to generate some figure using the Arial font as a requirement for
PLoS.
Following their guidelines, I have converted the windows font files
arial.tff files to .afm using tff2afm (exec file from MikTeX), but when I
try to generate a postcript file, the postcript device does not recognize
the .afm files.
The code I use to test the new font is the following:
2010 May 22
1
Lattice Wireframe Plot into LaTex
Dear R/LaTex user,
I'm simply trying to include a plot created with the Lattice wireframe
function into LaTex. I have no problems including other R plots into LaTex
by exporting as a Postcript and then including the graph in LaTex using
\begin{figure}
% Requires \usepackage{graphicx}
\includegraphics[width=]{mygraph.eps}\\
\caption{}\label{}
\end{figure}
However, for some reason when I
2011 Nov 05
1
How to infer default width and height for a device?
Hi.
GENERAL:
Is there a general method for inferring default device settings,
particularly 'width' and 'height', that works for all devices? AFAIK,
the answer is no, but there might be functions out there that I don't
know of.
POSTSCRIPT SPECIFIC:
If not, I'm considering implementing such a method myself. Is it
possible for R to infer the default 'width' and
2006 Oct 03
1
postcript file / xyplot function [Broadcast]
This is FAQ 7.22. Lattice functions produce graphic objects, which are not
displayed by default. If you print your graph, you should be fine. Also,
take a look at the documentation for panel.xyplot. Using type = c("p", "r")
should make things simpler.
Regards,
Matt Wiener
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at
2002 Jan 16
1
Postsript/Lattice interaction
Hello --
I'm using R-1.4.0 on a PC running SuSE Linux 7.1. Following Christian
Ritter's announcement this morning, I downloaded the new versions of
lattice and grid. I find that loading the lattice library causes
postcript() to include a blank first page when creating a file. Like
this:
> # Create regular postscript file of a plot
>
2009 Jun 11
2
Postcript font size
Hello
I'm doing a number of plots and in all of them I'm specifying the same
font size. However, comparing one plot to the other, they have fonts of
different sizes, so it appears some scaling is being done.
I tried using both postcript(pointsize = ...) and par(ps = ...), but the
results were the same.
Is there a way to specify a font size that is consistent among calls to
plot()?
2006 Jun 19
1
lattice xyplot - aligning date labels so that they align with the grid lines in panel.grid
Hi,
I have a basic question about aligning date labels for the x-axis
in an xyplot so that they align with the grid lines
from the panel.grid argument.
For example, with
x <- data.frame(
date = seq(as.Date("2005/01/01"), as.Date("2006/06/01"),
length.out = 20), value = runif(20))
xyplot(value ~ date, data = x,
panel = function(x, y, subscripts, ...)
{
2003 Sep 09
2
lattice.xyplot: adding grid lines
Hallo,
I'd like to add grid lines to a lattice graph having 2 series of Y data.
See these 2 examples:
data(iris)
[1]
xyplot(Sepal.Length + Sepal.Width ~ Petal.Length ,
data = iris, allow.multiple = TRUE, scales = "same",type="l",
)
[2]
xyplot(Sepal.Length + Sepal.Width ~ Petal.Length ,
data = iris, allow.multiple = TRUE, scales =
2004 Mar 15
11
creating a ps. file
Dear all
I wrote a routine. At the end of each cycle of the loop I would like to
save the result (plot) in a postcriptfile.
Of course if I just use dev.print in the following way:
dev.print(device=postcript, 'c:/Rfigures/plot_1.ps")
I overwrite my results with the second cycle of the loop. I suppose
there is a way to define the file name so that several plots are
2012 Jan 01
1
empty files created with trellis xyplot jpeg device
New years greetings.
I have been setting up a function to generate multiple jpeg charts. When
the calls are issued at the interactive console, the jpeg files are
generated without an issue. When I try to issue the same calls from a
function, some chart files are empty. It appears to only be related to
trellis charts. Any help to troubleshoot this is appreciated.
Regards,
-mike
R version
2008 Feb 05
2
dynamically add items to key of lattice xyplot
Hi all,
is it possible to dynamically add key items to an already existing key,
belonging to a lattice xyplot?
This is what I do: I make an xyplot with an initial key. Later on, I
want to extend this key with more items, as more lines are added to the
plot (lines are added using trellis.focus("panel")).
I guess I need some function to access the key panel in order to extend
it,
2001 Nov 13
2
plotting text tables
Could anyone provide me a function to plot text tables (formatted)
in a graphical device (ie postcript) ???
Thanks in advance
Michael
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the
2003 Dec 18
3
R GUI dies using postcript() in Windows XP Pro
Dear List,
My colleague has been having a problem with the following data and
plotting commands. The example below is part of a larger set of plots,
but I've isolated the problem to this example using this small dataset
(below), which kills rgui consistently. My version info
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
2011 Jul 19
1
Lattice plot problem outputting to jpeg
Hi.....I am relatively new to R but was quite pleased with myself at having
generated a series of lattice plots as PDFs. I was very surprised when
plotting these out as jpegs (or png or tiff) that the strip title
information above each lattice plot vanished. The pdf was fine. Has anybody
any ideas? I can't add an image as the information is sensitive.
Many Thanks
Steve Creamer
Here is the
2010 Feb 24
4
R Graphics into Latex
Hi,
I'm new in Latex and I'm trying to include an R chart into a Latex document.
This is what I'm doing:
1) In R: save the chart as a a Postcript in a folder C:/xxx/Density.eps
2) In Latex (using TexWorks on windows xp) :
In the preambule:
\documentclass[11pt]{article}
\usepackage{graphicx}
\begin{document}
blah..blah…blah
\begin{figure}
\centering
2005 Dec 08
1
grid graphics gpar(fill) argument and jpeg device
Hi everybody,
I just notice a strange behaviour of gpar's fill argument when using
non-postscript devices:
The default of the argument is transparent (according to get.gpar("fill")).
So as expected, the following code draws a nice red rectangle in the
middle of my X11 or postscript device.
pushViewport(viewport(width=0.5, height=0.5))
grid.rect(gp=gpar(fill="red"))
2002 Aug 15
2
How to run R to generate graphics (jpeg) files dynamically ?
Hello.
I am getting started with R system and I have a question:
I'd like to use R system to generate some graphics (jpeg) files dynamically
from
command line or perl script (like: > Rgui -input_r_file <file>.r
-output_jpeg_file <file>.jpeg)
1) How should I invoke R to read the data from external file.
2) How should I invoke R to run statements from external *.r file.
3) How
2005 Mar 09
3
function in order to plot the same graph to postscript and pdf
Hi,
I've written a function in order to plot the same graph in a postcript and in
a pdf file. Unfortunately, the second graph is always empty, i.e.:
plot.both <- function{myplot, filename}{
pdf(file=paste(filename, ".pdf", sep=""))
myplot
dev.off()
postscript(file=paste(filename, ".eps", sep=""))
myplot
dev.off()
}
yields in a
2009 Mar 03
1
dotplot() lattice charts return blank image (jpeg, bmp, png) file
Thanks in advance for the help. Trying to run a basic dotplot in lattice from R command line. When the file is created, in Fedora, it is blank image (jpeg, bmp, png). Image produces correctly in Windows environment. Libraries lattice and latticeExtra are loaded. Code:
-----------------
jpeg(file = "/tmp/img/temp31.jpg", width = 768, height=768)
xy <- dotplot(1:10)
print(xy)
2010 Apr 29
1
Fidelity of lattice graphics captured to jpeg or png
I am generating images via lattice from Frank Harrell's RMS package.
These images are characterized by coloured lines and grey-scale
confidence intervals. I need to port them to Openoffice/etc, and have
tried both png and jpeg (at high quality), but in neither format can I
subsequently see the the grey scale confidence intervals. Other than
moving to LaTex, does anyone have other