Displaying 20 results from an estimated 10000 matches similar to: "(no subject)"
2004 Sep 26
0
no plots in for loop (was RE: (no subject))
1. Please use a meaningful subject, as the Posting Guide asked you to.
2. You need to wrap xyplot() (or any other lattice plotting functions) in
print(). I believe this is in the FAQ.
Andy
> From: Martin Heller
>
> Hello R help mailing list,
> I'm having difficulty saving a series of figures in an
> analysis. I have attempted to save them in a for loop with
> the
2010 Jul 08
1
xyplot help
Hi, I am learning xyplot. I have an example dataset attached.
plotdata<-read.table("plotdata.txt",sep='\t',header=T,row.names=1)
head(plotdata,n=4)
y x type
1 -4.309601 -0.7448405 A
2 -4.715421 0.7875994 A
3 -2.310638 0.5455310 A
4 -2.685803 10.4116868 A
xyplot(y~x,groups=type,plotdata, auto.key=T)
This shows different colors for different
2013 Sep 13
3
Problema con el tamaño de las letras en R en gráficos multiples
Hola buenas,
Actualmente me hayo haciendo unas gráficas que han de tener un tamaño de
letra determinado. Para ello empleo los parametros ps de las funciones
x11() y en par().
Mientras hago gráficas de uno y gráficas de dos plots todo va bien. Pego
las gráficas en power point y veo que las gráficas son del tamaño
recomendado (pego una caja de texto y compruebo que todo es correcto de
manera
2008 Nov 04
1
How to create margin area around a graphic made by xyplot
Hi list,
Does any body know how I can create a margin area around the graphic created
by xyplot (the same thing we do using par in plot function)? I tried
viewport, but does not work.
Here is the code:
==============================================
require(grid)
vp<- viewport(x=.1,y=.1,width=.6,height=.6,just=c("left", "bottom"))
pushViewport(vp)
2005 Jul 12
5
High resolution plots
Is there any possibility to get high resolution plots in a windows xp
system?
I tried it with the device function png(filename =
"c:/r/highresplot%d.png",pointsize=12, res=900)
but when I try to set: width = 480, height = 480 or pointsize = 12,
the text is not scaled in the same way as the plots.
with regards
Knut Krueger
http://www.biostatistic.de
2006 Nov 22
3
saving graphics in jpeg format
Dear R users,
I need to save a graph in jpeg format. After plotting the graph,
when the graphics window is active, in the File menu, the
Save as / Jpeg / 100% quality correctly saves the graph in jpeg format.
But I would like to know, how could I control the resolution (in dpi)
of the saved jpeg file? I need to produce a jpeg at 1200 dpi.
I have tried also the jpeg function in the package
2003 May 06
1
pointsize - what is wrong?
Hello!
When I am trying to produce plot with text with pointsize 30 or
greater R sets up a default pointsize of 12 on plot.
I need to set up a large pointsize to make large jpeg or
png files (with good resolution).
I can write text on plot with pointsizes 18,20,22, but i cant
write text with pointsizes 25,26 and greater and i can not
understand - why? Is there are any restrictions in R? Or what?
2008 Jun 27
1
Sweave: controlling pointsize (pdf)
Hello,
Is there a way to control pointsize of pdf:s produced by Sweave? I
would like to have the same pointsize from (not a working example)
pdf(file="C:/temp/example.pdf", width=7, height=7, bg="white", pointsize=10)
plot(1:10)
etc..
dev.off()
as
\documentclass[a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[finnish]{babel}
\usepackage[T1]{fontenc}
2008 Aug 19
1
jpeg, dev.off() inside function
Dear all,
I am trying to plot and save the plots. I have written a small function for
that in which I use the jpeg and dev.off() commands. Strangely, when these
commands are inside the function, they are not working anymore.
For instance:
dataframe<- data.frame (x=c(1:20),y=seq(0,9.5, length=20))
for (i in seq(0,15, length=4)){
setwd ("C:/R")
jpeg(filename =
2008 Oct 30
2
xyplot, the first tick mark starts from 2 rather than 1, and also there is a NA as the final tick mark.
I am trying to plot some data, but have got some difficulties with labels on
the tick marks on the x-axes. There are 20 data points. All I want to do is
to plot the Loss versus Lines. When I use xyplot, the first tick mark starts
from 2 rather than 1, and also there is a NA as the final tick mark.
Here is the R code you code give it a try:
Would any body be able to fix this, please?
2005 Oct 12
2
Sharing Problems: huge numbers of share
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
My name is Olivier Gaspard, and I work for the CHC Belgium (IT
department of differents Hospitals).
So, let's me introduce the situation: for the moment, the firm works
with Win NT for the users profiles, and Samba 3.0 on Unix platform for
the "files sharing". Resuming : Every users having a user (NT) profile
(roamming profile)
2011 Feb 15
2
Sweave doesn't hand on width of special characters of Computer Modern fonts to LaTeX
Hello R users,
Using R, Sweave and the cmsyase.afm font it is possible to write LaTeX
documents including R figures with text in the Computer Modern Fonts:
\documentclass{article}
\usepackage{Sweave}
\begin{document}
<<echo = false, results = hide>>=
CM <- Type1Font("CM",
c(file.path("C:/texlive/2009/texmf-dist/fonts/afm/public/cm-lgc",
2009 Aug 20
1
lattice xyplot strip colors and location
Hi all,
I've been trying (unsuccessfully) to modify an xyplot I created using the lattice package. I would like to change default strip colors and locations.
I started with numeric data in 4 columns, which look like this:
0.25 2 1 32
0.25 2 2 30
0.25 2 3 27
0.25 2 4 23
0.25 2 5 17
0.25 3 1 30
0.25
2000 Jul 07
2
Question of programming style
This is really a question of how to program this *BETTER*. It works as I have
done it, but is quite ugly.
I want to do a 3d scatterplot of the upper triangle of a matrix, where the
z-values are the values in the matrix, and the row and column indices are the y-
and x-values. The complete (11 by 11) matrix is mmtop94.2. Here is my awkward
code:
mmtop94.2[lower.tri(mmtop94.2)] <- NA
# Here i
2006 Nov 24
2
plot() and Jpeg() increase font size and resolution
Dear list,
I am having troubles increasing the fontize when plotting a
variogram{gstat} and its model (vgm) with plot and using jpeg(). Also
the resolution in the jpeg call does not work. I am using R2.4 on
Mandriva 10.2 linux.
I can change fontsize with cex.axis in a normal plot, so I presume it
has to do with plotting the variogram model. Any help on how to increase
the font size and
2010 Nov 20
2
Merge two ggplots
Hello everyone.
I am using ggplot and I need some help to merge these two plots into one.
plot_CR<-function(x,y,agentid,CRagent){
library(ggplot2)
agent<-CRagent[[agentid]] # To make following expression shorter
ggplot((data.frame(x=CRX,y=CRY,sr=agent$sr)))+
geom_point(aes(x,y,colour=cut(sr,c(0,-10,-20,-30,-40,-50,-60,-70,-80))))+
geom_text(aes(x,y,color=cut(sr,
2008 Feb 19
1
Bug using X11 on mac osx (for jpeg or png creation) (PR#10800)
Full_Name: Stephane Bonneaud
Version: 2.6.2
OS: OSX - Leopard 10.5.2
Submission from: (NULL) (195.221.233.130)
Hello,
I have a R code file containing the following code:
-------
# This code is in r2jpg.r
# myData is filled here with some data from a file
jpeg(filename="test.jpg",width=960,height=720,pointsize=16,quality=100)
plot(myData,xlab="anything",
2004 Mar 31
4
Removing leading and trailing spaces (string manipulation)
Hi all,
I'm running the following code to generate 40 different jpegs based on the resulting data. I'd like the file names to be 'Cluster1.jpeg', however the code write filenames like 'Cluster 1 .jpeg'.
How can I get rid of the unwanted spaces? I've looked at ?format and it doesn't seem to work - at least in this context.
###################
ClusCount <- 40
2012 Apr 06
1
Saving multiple plots using tiff function
Dear R experts,
I am trying to save three plots using tiff graphics devices; however the
following code only produces two files (Rplot002.tif and Rplot003.tif)
showing figures 1 and 3. Here is a simplified ex code
tiff(filename ="Rplot%03d.tif",width=24,height=20,units="cm",res=300,
pointsize=10, compression = "lzw")
plot(1)
mtext("Fig
2006 Nov 27
2
[R-sig-Geo] plot() and Jpeg() increase font size and resolution
Thanks to Edzer and Roger,
I can now plot with increased font sizes. However, jpeg still does not
reproduce these, nor does it show up in high quality. What I would like
to do is produce some highresolution jpegs.
Any help would be appreciated
Thanx
Herry
R2.4 on Mandriva 10.2 linux.
Dr Alexander Herr
Spatial and statistical analyst
CSIRO, Sustainable Ecosystems
Davies Laboratory,
University