Displaying 20 results from an estimated 7000 matches similar to: "Saving trellis output to files in scripts..."
2006 Jul 10
2
Setting the colors of lines in a trellis plot...
With some help from those with expertise on this list, I managed to
produce a plot using trellis that looked like I wanted it to look.
Now, I need to take the same plot and make the lines on it color, but
I want to specify the color for the lines myself.
I've managed to make the key use the colors I want. I've managed to
make the symbols of the actual plot use the colors I want. But I
2005 Sep 01
4
Spacing and margins in plot
If I use the following command to plot points:
plot(c(1,2,2,3,3,3), type="p", pch=20, ylab="Y Label", xlab="X Label", xaxt="n")
there is a large amount of space between the label "X Label" and the
actual x-axis. If I change the xaxt="n" to xaxt="s", the label "X
Label" don't move at all. Is there a way to get
2005 Sep 01
1
Spacing and margins in lattice...
Similar to my last question, I want to tighten up the spacing and
margins in a plot I am doing with lattice.
Here are the commands I'm using:
data <- data.frame(x=c(1:3, 1:3), y=c(1:3, 1:3*2),
cat=c("foo","foo","foo","bar", "bar","bar"))
xyplot(panel=panel.superpose, y~x, data=data, groups=cat, type="b",
2006 Mar 03
1
R plots in PowerPoint
I have some plots that I generating using R (using trellis, plot, and
barplot2) that I want to include in a PowerPoint presentation I am
giving. My computer is running OS X. I find that presentations are
easier to read when there is light text on a dark background and would
like to generate plots that fit that style. The plots I am generating
are all grayscale. Is there an easy way to get R to
2005 Aug 08
1
Help with doing overlays plots...
I have a data frame with three columns, type (a factor with two
values: "Monolithic" and "Compositional"), size (numeric), and states
(numeric). I want to create a plot where size goes on the x-axis and
states goes on the y-axis. In this plot, I want two lines, one where
the type is "Monolithic" and one where the type is "Compositional".
I think this can
2005 Aug 14
1
Labels on axes with log scales with lattice
I using lattice to make some plots and I want to make the y-axis on
some of these plots use a log scale. In the following plot:
x <- 1:10
y <- 2^x
xyplot(log10(y) ~ x)
I get tick marks on the y-axis at 0.5, 1.0, 1.5, 2.0, 2.5, and 3.0. I
would rather have just 3 tick marks at 1.0, 2.0, and 3.0 but labeled
10, 100, and 1000.
I know this can be done using the "at" and
2005 Sep 15
5
Copying from graphics window in OS X
I'm running R from an Xterm window is OSX-Tiger. Graphical windows
appear as they should, but I'm having trouble copying from them--using
cmd+c or the Copy option in the Edit menu won't place the graph in the
clipboard (when I paste into a running OS X app, I get whatever was the
last copied thing from a non-x11 window). Any ideas on how to copy from
a xterm-launched graphical
2006 Mar 01
1
Width of bars in barplot2
I'm using barplot2 to plot some data. Is there any way to determine
the width of the bars in the generated plot? I know that barplot2
returns a list of the coordinates of the center of each bar, but since
there is some white space between each bar, I don't know how to get
the width of each bar.
Jamie
2006 Mar 08
1
Adding polygons to a barplot
I have a barplot I have created using barplot2 and I have been able to
add points and lines (using the points and lines methods,
respectively). I now need to add some polygons (triangles in
particular), that I want to be shaded to match bars in the plot. I
can get the coordinates of the corners of the triangles, but don't
know how to draw the triangles. I know there is the grid.polygon
2003 Apr 25
2
Open an r+b file connection on Windows
I am trying to open an existing binary file, seek to a position in the
middle, and then write one byte, while keeping the already existing data
after that byte. It seems to me that I am unable to open a connection to a
binary file in both read and write mode. I can open the "r+b" binary file
connection and seek around, but I can't write to the file. And looking at
the function
2013 Jan 29
1
points rejected as lying outside the specified window
Hello,
I am using the following code to create ppp files from csv data and map shape files, but I am getting some errors which I have been unable to fix by searching them online:
library(spatstat)
library(maps)
library(maptools)
NYC2<-readShapePoly("nybb.shp") # this is a map of the NYC boroughs without waterways and no census tract divisions (but it does include lines separating
2003 Nov 10
3
Reading an upper triangular matrix
Hola!
I have data in the form of a symmetric distance matrix, in the file I
have recorded only the upper triangular part, with diagonal. The
matrix is 21x21, and the file have row and col names, and some other
information. I am trying to read with the following code (I tried
many variations on it, but all give the same error). The items in the
data file is delimited by white space.
(Part
2007 Apr 14
3
HiddenStore option may be useful
I'm missing a HiddenStore option in OpenSSH, known from some ftp-server
implementations like ProFTPd.
Consider the following scenario:
- A process PROCA is frequently polling the directory for a file called
myfile.txt
- Someone transfers this file via sftp or scp to the directory
- While transfer is going on and the file is not completely written,
PROCA reads in the file and removes is
2011 Feb 16
2
[LLVMdev] verbosity while invoking clang
I am working on implementing a new target for llvm.
So far (to make debugging easier), I was compiling a C code into 2 steps:
1) generate the llvm file:
clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll
2) generate the assembly file using
llc -march=mytarget myfile.ll
Sometimes, I add some verbosity for the 2nd command like "-print-after-all".
Now, I'd like to
2011 Feb 16
0
[LLVMdev] verbosity while invoking clang
On Feb 16, 2011, at 11:08 AM, Damien Vincent wrote:
> I am working on implementing a new target for llvm.
> So far (to make debugging easier), I was compiling a C code into 2 steps:
> 1) generate the llvm file:
> clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll
> 2) generate the assembly file using
> llc -march=mytarget myfile.ll
>
> Sometimes, I add
2008 Oct 03
1
Problems with Share Modes "fill_share_mode_lock failed"
Hi, my details:
Server: 3.2.3
Client: win2k8
When I try list contents of a shared directory through an ASP script
(win2k8 is the client), it's take much time and on samba I saw many
times (4 times for each file) the same error: "fill_share_mode_lock
failed"
I tried "shares mode = No" but no success
It's the log:
...:49, 3]
2009 Jun 18
1
Problem reading from a file
Hi all,
I have written a function
cluster_compare(myfile, mclfile)
I called it giving names of files in the working directory (I see them with
dir()). I get
Error in file("myfile", "r") : cannot open the connection
In addition: Warning message:
In file("myfile", "r") :
cannot open file 'myfile': No such file or directory
I tried even calling
2003 May 20
1
R in BATCH mode
Dear all,
In R<=1.6.2 I usually used the following code (in DOS prompt) to run R in
batch mode
C:\documents> Rcmd BATCH myfile.R
and I could see the results (including warning messages) in the file
myfile.Rout
In R.1.7.0 I'm experiencing the followings:
(1) even if I type "Rcmd BATCH myfile.R myfile.Rout",
no file myfile.Rout is created, but just a "&1" file
2012 Mar 06
2
closing file with close(file) *silently*
Hi All,
I am writing a function that reads a file in
myfile = file('myfile.raw', 'rb')
.
.
.
.
.
close(myfile)
No matter what, I get the warning
Warning message:
closing unused connection 3 (myfile.raw)
Since the whole thing is in a function, I'd like to avoid unecessary noise for the user, and I'd like to kill the warning -- without having to mess with global options.
2008 Nov 13
4
Moving a file with Puppet
I wanted to move a file from one directory to another because my co-
worker didn''t like where it was being put by puppet. I went into
puppet and changed the name parameter of the the file directive. I
then created a new file directive to delete the old file, but I was
wondering if there was a better way to do this.
So, just to clarify, I went from:
file {"myfile":
name