[R] Problems exporting graphs

2008-06-26 Thread Sam Albers
I have trying to figure this out all day so hopefully the answer isn't too obvious. I am able to view a graph in the viewer window. However, I need to export graph outside of the viewer window. Here is the script I am using: > png("Compare.png") > plot(compare$DepthSLI, compare$DischargeSLI, col="

[R] Graph Order in xyplot

2008-07-01 Thread Sam Albers
I have constructed a Trellis style xyplot. lengthf <- factor(length) xyplot(SLI$velocity ~ SLI$width | SLI$lengthf, layout = c(2,7), xlab = "Width (cm)", ylab = "Velocity (m/s^2)", col = "black") This produces a lovely little plot. However, the grouping factor(lengthf) isn't in the right order. M

Re: [R] Grid building in R

2008-07-09 Thread Sam Albers
Right equidistant was clearly the wrong word. Sorry. I just meant that any given point should have an equal distance from the four points immediately surrounding it (x,-x,y-y) aside from those on the edge which will obviously only have two or three points surrounding. On Wed, Jul 9, 2008 at 3:12 P

Re: [R] Grid building in R

2008-07-09 Thread Sam Albers
Basically, I want 181 points equally spaced over a 40 x 40 cm area. I want to be able to specify the number of points and the area to which they are plotted on. I think you are right that grid is what I am looking for but I was the grid to have axes which your code below, although appreciated, did

Re: [R] Grid building in R

2008-07-09 Thread Sam Albers
Ahhh. That worked perfectly. Thank you very much. On Wed, Jul 9, 2008 at 4:19 PM, Dylan Beaudette <[EMAIL PROTECTED]> wrote: > On Wednesday 09 July 2008, hippie dream wrote: > > This might not possible in R but I thought I would give it shot. I am > have > > to set up a 40 x 40 cm grid of 181 poi

[R] Contour Plot Aspect Ratio

2008-10-02 Thread Sam Albers
Hello there, I have a fairly simple request (I hope!) I have produced a filled contour plot like this: library(grDevices) library(gplots) library(plotrix) filled.contour(contour, axes=F, frame.plot=TRUE, color=terrain.colors, ylab= "Length Along Flume (m)", key.title = title(main="Velocity\n(m/

Re: [R] Contour Plot Aspect Ratio

2008-10-03 Thread Sam Albers
So I managed to solve this for myself in a very roundabout kind of way. So I figured that I should share in case anyone else needed something like this. filled.contour(contour, axes=F, frame.plot=F, color=terrain.colors, ylab= "", key.title = title(main="Velocity\n(m/s)"),asp=2, key.axes = axis(4,