Displaying 11 results from an estimated 11 matches for "squishplot".
2009 Mar 03
1
behavior of squishplot in TeachingDemos
Hi list,
I wonder if anyone has had this experience with squishplot() in the TeachingDemos package.
Taking the example from the ?image help page,
library(TeachingDemos)
x <- 10*(1:nrow(volcano))
y <- 10*(1:ncol(volcano))
layout(matrix(c(1,2,3,4),ncol=2,byrow=TRUE),height=c(2,1))
## 1st plot
op <- squishplot(range(x),range(y),1)
image(x, y, volcano, col...
2007 Oct 10
2
Deleting the White Space in an R graph
Hi All,
Is there a way we can delete the empty white space around when we generate any graph/map using R? The final output should be onaly a picture with no white spaces all around.
Cheers,
Pratap
---------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
[[alternative HTML version deleted]]
2007 Jan 12
2
image() and nonsquare matrices
How do I draw non-square matrices with image() and get the axes right?
Try 1:
a <- matrix(rnorm(100),20,5)
image(1:20,1:5,a,asp=1,xlab="label here")
# No good because the axes don't touch the image
Try 2:
image(1:20,1:5,a,asp=1,axes=F,xlab="label here")
axis(side=1,pos=0)
# No good because the x axis label is floating far from the x axis.
Try 3:
2006 May 25
3
missed ylim from plot.default
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060525/ef972e9f/attachment.pl
2008 Jul 20
3
asp and ylim
#See David Williams' book "Weighing the odds", p286
y <- c(1.21, 0.51, 0.14, 1.62, -0.8,
0.72, -1.71, 0.84, 0.02, -0.12)
ybar <- mean(y)
ylength <- length(y)
ybarv <- rep(ybar, ylength)
x <- 1:ylength
plot(x,y,asp=1,xlab="position",ylab="ybar",type="n",ylim=c(-1,1))
segments(x[1], ybar, x[ylength], ybar)
segments(x,ybarv,x,y)
2008 Oct 02
1
Contour Plot Aspect Ratio
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/s)"),
key.axes = axis(4, seq(0, 0.6, by = 0.1)), asp=2, plot.axes = {
2008 Oct 13
2
Using an image background with graphics
I would like to use a map or aerial photo as a background to plotting
solid lines and text, and semi-transparent color contours, in base and
lattice graphics. Plot coordinates need to be consistent with the
georeferenced background. For example, a color contour plot would have
an gray-toned aerial photograph as a background for overprinted
semi-transparent color contours of some spatially
2008 Dec 03
2
Making a picture that is wide and small height
How do I make a picture that is a horizontal strip? I tried
> plot(x=c(1,2,3,4),y=c(1,1,1,1)) #works but screen image is square.
> pdf("ratio.pdf",height=1,width=6)
> plot(x=c(1,2,3,4),y=c(1,1,1,1))
I got the following error message:
Error in plot.new() : figure margins too large
Is it possible to produce an on-screen picture that is a horizontal strip?
(I use Mac Os X
2010 Nov 17
3
aspect ratio 1 and blank space
Hi,
I need to produce an ordinary scatter plot and it is vital that the aspect ratio equals 1.
I set the axis as:
plot(x, y, type="n", asp=1, ,ylim=c(-80,70),xlim=c(0,100)).
The problem is that I get some 'additional' blank plot area (basically, the lower bound of xlim becomes quite negative).
The xlim is not the range of the x-data, but I need the 0 there for further
2010 Sep 08
6
'par mfrow' and not filling horizontally
Greetings, Folks.
I'd appreciate being shown the way out of this one!
I've been round the documentation in ever-drecreasing
circles, and along other paths, without stumbling on
the answer.
The background to the question can be exemplified by
the example (no graphics window open to start with):
set.seed(54321)
X0 <- rnorm(50) ; Y0 <- rnorm(50)
2010 Aug 24
0
mlm for within subject design
...f interest is 45 degrees. Compare the following 2 plots (look at how fast the sunspots increase vs. how fast they decrease):
plot(sunspots, type='l')
plot(sunspots, type='l', asp=1/10)
Another function to look at if you don't want all the white space inside of the plot is the squishplot function in the TeachingDemos package.
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org]...