Displaying 20 results from an estimated 8000 matches similar to: "how to set font size in 'pt'"
2008 Aug 11
2
How to specify the type and size of font in bitmap format output?
Hi, all
I need to specify a font (for example, type=helvetica and size=10) in bitmap
output (for example, dev.print(bitmap, 'test.png').
How can I do this?
Thanks.
Hyunchul
[[alternative HTML version deleted]]
2008 Mar 06
1
histogram like x labels in barplot
Hi, all
I drew a barplot with
> barplot(data1, beside=TRUE)
and then, I want to labels with hist() like x-axis ticks.
How can I do this?
Thanks in advance,
Hyunchul
How to count from larger value to smaller value in ecdf (Empirical Cumulative Distribution Function)
2008 Feb 19
1
How to count from larger value to smaller value in ecdf (Empirical Cumulative Distribution Function)
Hi, all
ecdf function (Empirical Cumulative Distribution Function) in "stats"
package counts from smaller values to larger values.
However, I want to draw it by counting from larger value to smaller values
and I couldn't find options for this purpose.
How can I draw ecdf or ecdf like graph by counting from larger values to
smaller values.
Thank you in advance.
Hyunchul Kim
1999 Oct 04
1
bitmap copies of plots
Michael Lapsley was suggesting on R-help direct copies to gif/png/jpeg.
The following seems to do a sensible job for me of copying the current
device to any bitmap format supported by gs. The manipulation is needed
to work around assumptions made by postscript(), and I think better fixed
in postscript() (but not a couple of days before a release).
I want to make onefile=FALSE work on
2009 May 29
1
png() error in recent R-devel on Windows
Hi,
Tested with the latest r-devel snapshot build for Windows (2009-05-28 r48663):
> png("test.png")
Error in png("test.png") : invalid value of 'fillOddEven'
The png() function is defined like this:
> png
function (filename = "Rplot%03d.png", width = 480, height = 480,
units = "px", pointsize = 12, bg = "white", res = NA,
2008 Feb 19
4
How to join path with arguments
Hi, all
How to format and join strings ?
For example, like following short python examples.
*********
name1 = 'sample-plot'
filename = '%s.png' % name1
inputdir = '/path/to/dir'
os.path.join(inputdir, filename)
**********
Best,
Hyunchul Kim
[[alternative HTML version deleted]]
2009 Apr 06
1
Maintain proportions while reducing graphic output size
Hello,
Is there a combination of par() settings or other commands that will allow
me to uniformly reduce the size of graphics outputs? It appears that the
png() device outputs 5-inch by 5-inch images, and I am trying to change my
whole script to produce 4x4 images with the same proportions. I tried
specifying parameters within each png(), but it reduced the size of the file
without refitting the
2006 Jun 16
1
problem with legend on other graphics devices
Hi,
I have a bit of a problem with a legend in png, eps and pdf plots
produced from a custom plotting function. I was writing a little
function to produce some stock plots for a routine analysis conducted in
our lab. I have a wrapper function figures() (see below) that produces
eps, png and pdf versions of the lab output. When I draw the plot on the
X11() device the correct amount of space is
2006 Sep 12
0
Bitmap file size problems
I am experiencing some problems with the windows graphics device
and bitmaps. (Everything is done in R 2.3.1 on Windows XP)
As an example, I will use
windows(3,2)
plot(1:10)
It is not a pretty or meaningful graph, but it demonstrates the problem.
savePlot(file="test",type="bmp")
creates a bitmap file of size 303x207 which is somewhat strange
because it seems to use slightly
2010 Aug 29
3
Saving plot to tiff, with high resolution for publication ?
Hello all.
A Journal we are sending an article to is asking for the following:
To ensure the best reproduction quality of your figures we would appreciate
high resolution files. All figures should preferably be in TIFF or EPS
format... and should have the following resolution: Graph: 800 - 1200 DPI
Photo: 400 - 800 DPI
Color (only CMYK): 300 - 400 DPI (DPI = dots per inch)
Since I am sending
2000 Jul 18
5
X11 & dev2bitmap
Hi,
I am trying to put some graphics I have generated from R on a
webpage using dev2bitmap to create a bitmap, .BMP, file.
When I look at my notes from 2 or 3 months ago I was successfully able to
put the ACTIVE device plot result into a bitmap file using a command such
as:
dev2bitmap("InsectSpray.BMP")
Job done!
Now when I try the same command, I get the following:
>
2013 Sep 13
0
Problema con el tamaño de las letras en R en gráficos multiples
Estimando Javier Villacampa González
Yo guardo las gráficas en un archivo, no las copio.
Javier Marcuzzi
-----Original Message-----
From: Javier Villacampa González
Sent: Friday, September 13, 2013 12:43 PM
To: R ayuda
Subject: [R-es] 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
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 Sep 03
1
how to reduce stress value in isoMDS?
I apply isoMDS to my data, but the result turns out to be bad as the stress
value stays around 31! Yeah, 31 ,not 3.1... I don't know if I ignore
something before recall isoMDS.
My code as follow:
m <- read.table("e:/tsdata.txt",header=T,sep=",")
article_number <- ts(m, start = 2004,end=2008, frequency = 1
,names=colnames(m))
2008 Apr 18
5
vector in filename
Hi,
I am trying to generate a group of graphics with an iteration. Some
thing like this...
x=1
y=1
max=10
myfiles <- paste("foo", x:max, ".png", sep="")
while (x =< max)
{
png(file=myfiles, pointsize = 20, width = 600, height = 600,
units = "px", bg="#eaedd5")
plot(x,y)
dev.off()
x=x+1
y=y+1
2012 Sep 20
0
Plot to tiff, font size problem in multiple plot figures
I am creating graphs for a publication and would like them to have the same
font size... but when I create a figure with multiple plots, the font size
decreases even though I haven't changed the tiff() resolution or
pointsize specifications, I have increased the figure size according to how
many plots it will ultimately have, and I have made sure the margins are
equivalent for single and
2000 Apr 28
1
dev2bitmap from a script invoked by another process
Issue:
I have a R script that is invoked periodically by another process. In the
script, a graphics is generated and I want to get a the image for the graph
as a jpeg.
Here is a prototypical version of the script (try.R):
plot(1)
dev2bitmap("try.jpg", type = "jpeg")
I am running R-1.0.0 on Solaris 7.
The script is invoked as: R --vanilla < try.R
A file named try.jpg is
2008 Oct 15
1
trouble with combining png and pdf
L.S.,
I would like to add a downsized image to a pdf file and got stuck on the
code to use.
My goal is to open a pdf device, add a plot, add the downsized image, and
then close the pdf device.
Making the downsized image is easy using png(),
png(file="x.png", width = 600, height = 600, units="px", pointsize=12)
image(very large image)
dev.off()
making a pdf
2007 Mar 30
0
[933] branches/wxruby2/wxwidgets_282: Font API 2.6 -> 2.8, corrections to Event doc
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2007 Feb 06
1
A question regarding cex and pch="." in lattice
Hello,
I'm using lattice and opened an X11 device with the following call
X11(width=5,height=5,pointsize=1)
I then ran the following code
library(lattice)
x<-rnorm(30,sd=2)
y<-runif(30)
xyplot(y~x,pch=".",col="black",cex=1)
If i remove "cex=1", not all the points are plotted. From ?X11, i
read,"pch='.' with cex=1 corresponds to a