Displaying 20 results from an estimated 9000 matches similar to: "how to save a chart as ps in R?"
2008 Mar 12
1
how to let R support Chinese fonts in charts?
Hi everyone,
I plotted a chart this morning, which should have Chinese lables for the
points. I made the chart via:
coordinates:
angel77wq 360.61501 9.278135
cngdsthuang1220 -278.74068 91.556843
c????c 125.47369 -66.589461
fszym2007 -174.86150 346.672588
john_azyb_lee -59.76965 -13.806237
limu0089 -135.18684 -147.573071
new?? -147.53176 -130.237810
2008 Feb 27
1
how to convert a table to adjacency matrix used in social network analysis?
Hi Guys,
Do you any one know how to convert a long format table to an adjacency
matrix used in sna? The long table looks like
p1 p2 counts
a b 100
a c 200
a d 100
b c 80
b d 90
b e 100
c d 100
c e 40
d e 60
and I want to convert it to an adjacency matrix which can be used in sna?
Any methods will be appreciated!
btw, besides sna package, is there any better package can be used in social
2008 Aug 26
3
savePlot() does not save plot with format set
R-help,
Whenever I try to save a plot with "savePlot"
the file is not stored in my hard disk with the selected
format. Several formats are set and none of them
works. I just get the file name with missing extension
and it can't be open with programs like Paint and Microsoft Photo
Editor
Th only one able to open it is "Windows Picture and Fax Viewer"
plot(rnorm(10))
2004 Sep 30
2
How to save graphics in portable way in batch mode?
Hi all,
What is the right portable way to save graphics
in batch mode?
Remarks:
1. Problem is STFWed and RTFMed. In particular a short note
about png() is found in R-FAQ. In fact, there were stated
that png() is not reliable under Linux in batch mode.
2. savePlot under windows is quite convenient, but
not supplied under Linux.
3. pdf() + postscript() < savePlot()
2009 Oct 25
3
Trying to save both an rgl plot and a bar plot errors
Hello,
I am basically using a script that is designed to first create an rgl 3d scatter plot followed by a barplot on the same data. After this is done, the program is to first save the barplot as a .tiff file then to save the rgl 3d graph as a .png file. Once this is done, it is to repeat this 3d plot and barplot combo with saving 49 more times. The plotting script excerpt will be posted at the
2003 Mar 26
3
hist overlay...
thanks to all for the 2d scatter plot.
i have one more.
how do i plot 'hist(y1, col="red") and hist(y2,col="blue") in the same window?
thanks again.
2007 Nov 07
1
strwidth and strheight for rotated text
Dear All,
I would like to plot text with a box around it. I used strwidth and
strheight to compute the size of the box which is plotted with rect:
z <- rnorm(10)
# horizontal text works
plot(rnorm(10))
x1 <- 5
y1 <- 0
label <- "Label"
cha <- paste(" ", label, " ", sep = "")
xh <- strwidth(cha, cex = par("cex"))
yh <-
2010 Oct 02
2
tyring to save plots using windoze 7 and cygwin
Hi,
I'd been using R in the past and recently installed it on a new windoze 7 machine.
There have been many issues with compatibility and 32/64 bit apps etc and I did
find on google on isolated complaint that saveplot failed in scripts a long time ago.
R seems to work fine except script-based plot saving as pdf has not worked.
I have tried the following, none of which seem to function,
xyz
2009 Mar 01
1
probleme with savePlot (to eps)
Hi the list,
I used savePlot to export some eps graph but it seems that the graph
file hold a bug. I include the graph.eps in a LaTeX file. Running latex
is ok. But the dvi file contain some mistake, the graph overprint on
some text and hide it. Then, when I try to convert it to another format,
I get :
Ignoring remaining special text following unkown PS operator: "SDict"
Remainder
2005 Nov 16
2
mdf no sound issue
Jean Marc & list,
Following up on this- there seems to be an issue with this calculation
in mdf.c (Smooth echo energy estimate over time)
Pey += Eh*Yh;
Pyy += Yh*Yh;
it goes too large for floating point, which seems to be caused by extremely
large values in st->Rf[j], st->Yf[j] and smaller values in st->Eh[j],
st->Yh[j]-
things were relatively quiet
2005 Jul 05
1
Invalid device number in savePlot
Hi,
I recently encountered an error using the command "savePlot" when trying to
save the third of 3 open graph windows. After successfully saving and
closing the first two windows I receive an "Invalid device number in
savePlot" error. The following is copied and pasted from an example session
to illustrate the behaviour:
> windows()
> hist(rnorm(100))
> windows()
2009 Dec 07
3
savePlot for Mac and / or Linux?
Hi all,
In the package rtlu, I use the function savePlot. It is convenient since
it let the user decide in which graphic format he wants his graph to be
export.
But when I run R CMD check, I get the following message :
> rtlu(V1,fileOutput="First.tex",textBefore="\\section{Variable 1 to
3}",graphName="V1")
Error in savePlot(filename = nomBarplot, type = type)
2007 Nov 21
3
How can I save a plot ?
I recently installed R 2.6 on Linux/SuSE
When I was running the previous version on Windows I was able to save my
plots from a script.
There was a command "savePlot" that is no more retrieved in the last
version.
In this scenario, how can I tell R to save the currently displayed plot to a
file ?
The "save" command is generic and do not know how to tell R that the plot is
to be
2012 Apr 02
5
Usando R CMD BATCH no me funciona savePlot()
Buenas tardes:
Hasta ahora he utilizado savePlot() en ejecuciones de R en Windows, donde lo
que hago es grabar la ventana de gráficos mediante dev.cur() en formato pdf.
Concretamente éste es el código:
> savePlot(filename = ruta_pdf, type = "pdf", device = dev.cur(),
restoreConsole = TRUE)
Este comando está dentro de un bucle de "n" ejecuciones, por lo que guardo
un pdf por
2008 Jun 03
5
savePlot() no longer automatically adds an extension to the filename.
Plaintive squeak: Why the change?
Some OS's and desktops use the extension, so forgetting it causes
trouble. The new default filename keeps a filetype (as before) but the
user now has to type a filetype twice (once as the type, once as
extension) to get the same effect fo rtheir own filenames. And the
extension isn't then checked for consistency with valid file types, so
it can be
2009 Feb 25
4
Strange behavior of savePlot
Hi all,
I am using savePlot in a loop for saving several graph but I get some
graph in 553x552, some other in 1920x1119. How comes ?
My data are almost all the same (same label, same xlim / ylim, almost
same data. Only the color changes). I save them in bmp.
Thanks for your help.
Christophe
2007 Oct 29
1
SavePlot in the Batch mode
Hi R,
Does 'savePlot' will not work in the batch mode? I get the below error:
> x=c(1,2,3,4,5,6,7)
> hist(x)
> savePlot("D:\\Test\\histo",type="jpeg")
Error in savePlot("D:\\Test\\histo", type = "jpeg") :
can only copy from 'windows' devices
Execution halted
The same works in the interactive mode. What
2010 Oct 29
2
plot pdf
I want to plot the unstadardized version of a normal plot. Can you explain why that is not working?
Dev.set(1)
xcrit=-1.645
cord.x <- c(-3,seq(-3,xcrit,0.01),xcrit)
cord.y <- c(0,dnorm(seq(-3,xcrit,0.01)),0) # what does final 0 do here?
curve(dnorm(x,0,1),xlim=c(-3,3),main='Normal PDF')
polygon(cord.x,cord.y,col='orange')
2013 Apr 08
2
savePlot() under Windows
Hi,
A Windows user asked me a question and I believe this is a bug of R
3.0.0 under Windows:
> plot(1:10)
> savePlot('test.wmf')
Error in .External(C_savePlot, device, filename, type, restoreConsole) :
Incorrect number of arguments (4), expecting 3 for 'savePlot'
> sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1]
2010 May 08
5
contar casos en un vector
Buenas noches, tengo dos vectores con nombres. El primero es largo,
nombreL, y el segundo corto, nombreC. Quiero contar cuantas veces
aparece alguno de los nombres del vector corto en el largo.
Lo que estoy haciendo es lo siguiente:
cuenta <- 0
topL <- length(nombreL)
topC <- length(nombreC)
for (i in 1:topL) {
for (j in 1:topC) {