Displaying 20 results from an estimated 4000 matches similar to: "spikes in contour and persp (PR#327)"
2010 Feb 07
1
contour & persp
I have this data set that both x & y are ordered vectors of length 600 & 700 respectively; z is a 600 by 700 matrix whose entry z[i,j] is either a missing value (indicated by 'NaN') or a real number between 0 and 1. The contour function
contour(x,y,z)
gives me a blank picture. I guess the reason is that most of z-entries are missing, only less than 1% are non missing.
2009 May 27
1
contour lines on persp plot
Hello folks,
I am a beginner R user. I have been able to make a 3D surface plot using
'persp'. The surface is made by a grid of lines emanating perpendicularly
from each of the x and y axes at regular intervals.
I can get rid of that grid by setting 'border=NA'.
Can anyone suggest some ways to replace the grid with contour lines, to
create a 3-dimensional contour map?
Thanks
2006 Nov 07
1
plot questions?-errors in persp(x1, x2, y) and contour(x1, x2, y)
Dear Uwe Ligges ,
I still can't finish it.
*> aa* #my data
x1 x2 y
5 0.05 6 4.4180
1 0.50 3 2.6979
4 0.50 9 2.9000
7 0.95 6 2.6230
8 0.95 6 2.9078
9 0.95 6 2.6727
3 1.40 3 2.4203
2 1.40 9 2.5329
6 1.85 6 2.4867
*> attach(aa)*
*> persp(x1,x2,y*
error in persp.default(x1, x2, y) : increasing 'x' and 'y' values expected
2013 May 16
1
Contour lines in a persp plot
Hello folks,
i'm a R beginner and i want to put in a same plot both contour lines
and persp plot.
For example,
fn<-function(x,y){sin(x)+2*y} #this looks like a corrugated tin roof
x<-seq(from=1,to=100,by=1) #generates a list of x values to sample
y<-seq(from=1,to=100,by=1) #generates a list of y values to sample
z<-outer(x,y,FUN=fn) #applies the funct. across the combos of x
2006 May 09
2
RFC: log='z' for image, contour, persp?
I've been thinking of adding the possibility of including "z" among the
axes to be logged in image, contour, and persp. In the first two, it
would only affect where the breaks were set if they are calculated
automatically; it would have a bigger effect in persp.
For example,
image(x, y, z, log="z")
would set 12 colours evenly spaced on a log scale of the z values.
1999 May 04
0
contour and persp help please
I have data saved in files on disk in following format
x y z
------------------
1 1 1
1 2 2
2 1 3
2 2 4
Normally I read the file into a data frame, but suppose I do it this way:
x<-seq(1,2)
y<-seq(1,2)
z<-seq(1,4)
data<-data.frame(x,y,z)
image(unique(data$x),unique(data$y),data$z, col=gray(0:19/19),
xlab="x", ylab="y")
I was helped at some point in the past on
2004 Feb 18
3
persp and lines()
R-sters:
I'm interested in keeping data plotted in persp to preserve the wireframe
look, I'd just like to change one of the lines drawn (in either the x or y
direction) into a different color so that it stands out.
Or is there some way to add a line (say, via lines(), or abline()) to a
persp() plot at the designated x or y that would follow the z surface
contour? I could add a line
2001 Oct 12
2
adding text to persp
Any ideas on adding text to persp plots? The perspp function from S-plus
is not implemented. I'm using R1.3.0 on Win2000.
Thanks,
Sundar
--
Sundar Dorai-Raj, Ph.D.
Assistant Professor
Discrete & Statistical Sciences Office: (334) 844-3647
231 Allison Lab Fax: (334) 844-3611
Auburn University Email: dorairaj at dms.auburn.edu
Auburn AL 36849-5307
2001 Nov 08
0
-Altering labels and tickmarks on persp() plots
All,
This was posted earlier but may have got lost in another thread.
Can someone tell me how to independently alter the fontsize and position of
labels on a persp plot??
I've tried using titles() and axes() but they seem to only apply to the
standard plot() and contour plots (contour() and filled.contour(). Commands
like text() seem only to add to the margin of the plot rather than
2000 Jun 26
1
persp greek label problem (PR#583)
Full_Name: Ramin Nakisa
Version: 1.1.0
OS: i386 linux
Submission from: (NULL) (192.127.94.7)
Labels created with expression seem to disappear, e.g. the x axis label in
x <- -6:16
contour(outer(x, x), method = "edge", vfont = c("sans serif", "plain"),
xlab=expression(theta[0]), ylab=expression(theta[1]))
and all three labels in
x <- -6:16
persp(outer(x, x),
1998 Dec 03
2
contour labelling [was "Re: image ()"]
> From: Martin Maechler <maechler at stat.math.ethz.ch>
> To: royle at bearmtn-e0.cgd.ucar.edu
> CC: lgygax at access.unizh.ch, r-help at stat.math.ethz.ch
> Subject: contour labelling [was "Re: [R] image ()"]
> Mime-Version: 1.0 (generated by tm-edit 7.106)
>
> >>>>> "Jeffrey" == Jeffrey A Royle <royle at bearmtn-e0.cgd.ucar.edu>
1998 Dec 04
1
contour labelling [was "Re: image ()"]
> From: Bill Simpson <wsimpson at uwinnipeg.ca>
> Subject: Re: contour labelling [was "Re: [R] image ()"]
> MIME-Version: 1.0
>
> > We may be missing the crux here: was it to have a means of
> > displaying such surfaces?
>
> Yes, bang on. I knew of the
> existence of the Delaunay code in the R libraries. Yes I want
> to make a picture that
2000 Oct 26
2
persp plot question..
Dear All,
I have been trying to to do this for a few days now. I can generate
persp plot OK and can generate it in colour using the command
persp(x,y,z,col=terrain.colors(20))
However, I was wondering if it is possible to shade the 3d surface like a
contour plot. i.e. black for large z, white for small z, say
Thanks in advance
Colin
2001 Nov 21
2
contour as a generic function?
After "image" and "persp" would it be interesting to als have contour as a
generic function?
Cheers
Paulo Justiniano Ribeiro Jr
Dept Maths & Stats - Fylde College
Lancaster University
Lancaster LA1 4YF - U.K.
e-mail: Paulo.Ribeiro@est.ufpr.br
http://www.maths.lancs.ac.uk/~ribeiro
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2000 Jul 07
1
Perspective or Contour Plot of a Matrix
I would like to plot a large (401 x 101) matrix of numbers as a
perspective plot (with the columns and row indices as the y and x
components and the values in the matrix at the z values). I try to
convert it to a data frame, but it always errors out with "Figure
margins too large". What does this mean? How can I get the plot
generated?
Thanks
--
-Alex Morgan Homepage:
2006 Jun 28
1
persp/ scatterplot3d
Dear WizaRds,
I would like to create a 3d-plot with persp(). I sampled 17 points
with xyz-coordinates (real-life example!), representing the peaks of the
whole plane with "zero coordinates" x=3,y=3,z=3. My intention is to show
which entries are above or below the "zero" level with persp() on a
nicely created grid. I also tried scatterplot3d(), but, alas, I am
unable
2007 Jan 01
4
Help with filled.contour()
The following plot is a first approximation to what I need:
***********************************
mu1 <- 0
mu2 <- 5
s <- 1
x <- seq(-2.5, 7.5, length = 41)
y <- seq(-2.5, 2.5, length = 41)
f <- function(x,y){
term1 <- 1/(2*pi*sqrt(s*s))
term2 <- -1/2
term3 <- (x - mu1)^2/s
term4 <- (y - mu1)^2/s
term5 <- (x - mu2)^2/s
term1*(.5 * exp(term2*(term3 + term4)) + .5 *
2009 Oct 13
1
vis.gam() contour plots
Greetings,
I have what I hope is a simple question. I would like to change my
contour interval on the vis.gam( plot.type="contour") in the mgcv
package. Is this a situation where I need to modify the function or is
there a default value I can change?
Thanks
2009 Mar 14
4
persp plot + plotting grid lines
Dear all;
Does anyone know how to add grid lines to a persp plot? I've tried
using lines(trans3d..) but the lines of course are superimposed into
the actual 3d surface and what I need is something like the plot shown
in the following link:
http://thermal.gg.utah.edu/tutorials/matlab/matlab_tutorial.html
I'll appreciate any ideas
Thanks
PM
1998 May 22
0
R-beta: Contour package
From: Martin Maechler <maechler at stat.math.ethz.ch>
Subject: Re: R-beta: Contour package
There's still no "persp" (perspective plots), even though Ross
once told about a ``prototype'' hidden somewhere in his private code.
Interesting coincidence... Yesterday I pulled out some very old pascal
code I wrote to do perspective plots of surfaces. I hope to have a