Displaying 20 results from an estimated 10000 matches similar to: "Aspect ratio and limits"
2005 Jun 16
2
heatmap aspect ratio
Hi all,
Does anyone know of a fairly easy way to "stretch" a heatmap
vertically? I've got 42 arrays and would like to be able to see as
many significant genes as possible (right now I can only get 50 genes
with it still being readable). In some comparisons there are several
hundred significant genes.
I've fiddled with the "asp" argument, but that doesn't
2006 Jan 21
1
Bug in xy.coords() or documentation error?
Hi,
I noticed the following problem with xy.coords() in R 2.2.1-patched
(version info at the foot of this email) and R 2.3.0 unstable
(subversion no: r37123):
> xy.coords(x = matrix(1:20, ncol = 2))
Error in xy.coords(x = matrix(1:20, ncol = 2)) :
argument "y" is missing, with no default
> xy.coords(x = matrix(1:20, ncol = 2), y = NULL)
$x
[1] 1 2 3 4 5 6 7 8 9
2004 May 02
1
contourplot, xyplot, aspect ratio, mfrow
Hi,
I am gradually moving from the classical R plot functions to the library Lattice
I have some questions about contourplot () and its arguments:
1/ I am working on geographical coordinates which makes necessary that the X (longitude) and Y (latitude) units be represented with
the same distance on screen. This was obtained in the classical R plots with plot.default(x,y, asp=1,...) and then
2004 Mar 19
5
asp=1 and aspect ratio
Hi everyone
I want a square scatterplot with abline(0,1) going exactly through the
SW and NE corners. By "square" I mean that the plotting region is
exactly square, and that the axis limits are identical.
x <- 1:20
y <- x+rep(c(-1,1),10)
lims <- range(c(x,y))
None of the following do this:
plot(x,y) ; abline(0,1) #not square
plot(x,y,asp=1);abline(0,1) #diagonal
2003 Dec 10
4
Scatterplot axes
Please, could someone help me figure out what seems to be a very simple
problem (and is still taking me hours...).
I want to draw a simple scatterplot but with 'equal' axes, i.e. I want both
axes to go from -3 to 3. Values for x lie between -2 and 0.5, values for y
between -2.2 and 3. I have tried 'usr' and 'eqscplot' and a few other
options, but it doesn't give me the
2011 Apr 02
3
Plotting MDS (multidimensional scaling)
Hi,
I just encountered what I thought was strange behavior in MDS. However, it
turned out that the mistake was mine. The lesson learned from my mistake is
that one should plot on a square pane when plotting results of an MDS. Not
doing so can be very misleading. Follow the example of an equilateral
triangle below to see what I mean. I hope this helps others to avoid this
kind of headache.
2011 Feb 21
2
(no subject)
What is plot.new? and how can i get it to work so i can load other data?
> library(splancs)
> area = 6*4
> lambda = 1.5
> N = rpois(1,lambda*area)
> u = runif(N,-2,4)
> v = runif(N,0,4)
> plot(u,v,asp=1)
> h = chull(u,v)
> h = c(h,h[1])
> plot(u[h],v[h],"1",asp=1)
Error in plot.xy(xy, type, ...) : invalid plot type '1'
>
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 Jan 09
4
parsing pdf files
I have a pdf file that I would like to parse into R:
http://www.williams.edu/Registrar/geninfo/faculty.pdf
For now, I open the file in Acrobat by hand, then save it "as text"
and then use readLines(). That works fine but a) I am concerned that
some information may be lost and b) I may be doing this a lot, so I
would rather have R grab the information from the pdf file directly.
So: is
2010 Mar 09
1
Obtaining the true aspect ratio for a lattice plot
I almost always supply my own aspect ratio when plotting using
lattice. When I plot these to pdf, I would like to specify pdf
dimensions that will result in minimal margins around the plot. In my
application, resorting to a pdf cropper after plotting is not an
option - I must do it in R. The problem is that I cannot determine
the correct aspect ratio for the overall plot (accounting
2010 Oct 15
1
multiple car scatterplots on one graph
R version 2.11.1 on WinXP
How do I get 3 scatterplots with marginal boxplots (from the
car package) onto a single plot?
I have a data frame called bank
> dim(bank)
[1] 46 5
head(bank)
x1 x2 x3 x4 pop
1 -0.45 -0.41 1.09 0.45 0
2 -0.56 -0.31 1.51 0.16 0
3 0.06 0.02 1.01 0.40 0
4 -0.07 -0.09 1.45 0.26 0
5 -0.10 -0.09 1.56 0.67 0
6 -0.14 -0.07 0.71 0.28 0
2006 Feb 03
1
Stupid drag/drop add on
To constraint the movement to a specific area, I added the following lines in dragdrop.js
This will allow you to specify: area: [2,3,100,120]
to draw a rectangular area where movement is allowed...
might have very strange side effects, just needed a quick/dirty hack. Plus I installed script.aculo.us just 10 minutes ago :)
Don''t flame pls.
Manuele
line:202 (please note the ","
2009 Mar 03
1
Self-Organizing Map analysis
Dear list,
I read the SOM package manual but I don't understand how to perform (for
example) 1) the SOM analysis on Iris data 2) with a visualization similar to
that of figure 7 in
http://www.cis.hut.fi/projects/somtoolbox/package/papers/techrep.pdf
Any suggestion? Thanks in advance,
Gianandrea
--
View this message in context:
2008 Nov 19
1
Buggy trellis.focus() with xyplot ?
Hi:
(Tried to find a bug report about this issue, but was unable to find it, let
me know if this is a known issue)
I have been working on an interface to highlight xyplot panels on mouse
overs in JavaGD but I have stumbled with what seems to be a bug in
trellis.focus.
I am using R 2.8 with lattice 0.17-15
*** To replicate the bug:
1.- display an xyplot. For example, from the xyplot help page:
2010 Aug 19
2
Aspect Ratio
set.seed(1)
x <- rnorm(n = 1000, mean = 0, sd = 1)
plot(x = x, asp = 2000)
Could someone please explain what the 'asp' parameter is doing?
2007 Sep 09
1
Sweave figure aspect ratio
Hello,
using Sweave, is there any option to preserve the
original aspect ratio of plots generated from R code?
Consider this Sweave chunk:
<<test,echo=F,fig=T,width=2,height=2>>=
x <- 1:10
y <- sin(x)
par(mar=c(4,4,0,4))
plot(x,y,
xlab="x label",
ylab="y label"
)
@
In Latex, I want to produce a plot of width 2 but
don't care about the
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 = {
1998 Nov 30
3
R functionality
Is there anything R can do that Splus can't? I know about the
differences in the language but what about statistical functionality.
Are there models you can build or graphs you can plot in R that you
can't in Splus? My impression is that in this respect R is strictly a
subset.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2005 Feb 18
3
Barplot - Can't figure it out
Hi,
I have two catagorical vectors like this;
x = c(1, 2, 4, 2, 1)
y = c(2, 4, 2 ,4, 1)
I want to set up a barplot with the catagories 1-4 horizontally and
number of occurances vertically for each vector x,y. I've tried
boxplot(table(x,y), beside=T)
and
boxplot(c(x,y), beside=T)
among others, but can't get it to work...Any ideas? I'd apppreciate any help
2003 Jul 23
1
Aspect ratio question
Hi,
despite the warnings on the website ;-) I played with the current CVS
source of theora on Windows 2000 w/ Microsoft Visual C++. The codec and
the "experimental" example programs compiled fine. I also encoded a 33
MB MPEG2 (?) video (3 minute trailer) to a 14 MB .OGG using "mplayer -vo
yuv4mpeg -ao pcm" and the "encoderwin" sample program, and play it with
the