similar to: Re: persp() problem

Displaying 20 results from an estimated 2000 matches similar to: "Re: persp() problem"

2000 Apr 27
1
plotting axes
Dear friends. I appreciate the help that plot.date is not yet fully developed but beautiful and efficient as is anyway. I attach again an example from a real patient and now the problem is how to represent a chemical C-reactive protein (CRP) on the plot together with concentration of vancomycin. CRP was 25-200 and vancomycin below about 20. I only could get it about right by dividing CRP by
2000 Apr 26
1
xaxp with dates
Dear friends. As promised ver 1.01 solved the former problem and now dates plot OK in windows. But. In the following code, "cex.axis"=0.5 works OK but "xaxp"=c(14620,14680,4) has seemingly no effect. The limits for xaxp was found from the default plot and inspecting par(). I need to put the date marks at specific points. Could I suppress them altogether and make a new xaxis
2000 Apr 11
1
dates in 0.99 and 1.0 windows
Dear friends. I'm in windows version R1.0.0. The code below produced a very beautiful and efficient graph in R Version 0.99.0 Patched (February 9, 2000) but in the newest, the x-axis is unreadable with dates written unformatted. I tried to set the numbers using par(xaxp) or xaxs but to no avail. Since it was OK just in the last version I guess there might perhaps be something wrong
2000 Mar 16
1
data.entry
Dear friends. Can anyone explain what is happening here ? I am told that no data entry editor is available in this version of R ? The example is not far from that shown in help(data.entry) ? Besides, could an empty spreadsheet entry be an option to start inputting data ? R : Copyright 2000, The R Development Core Team Version 1.0.0 (February 29, 2000) R is free software and comes with
2003 Sep 17
0
Persp and color (again)
Hi guys, After all the discussion yesterday about persp and color, I decided to have a more closer look at demo(persp), and decided to write a function to generate 'topo-like' colours to plot perspectives (Thanks a lot to Uwe Ligges for his enlightning comments regarding the code in the demo). Here it goes, I believe that this function will be pretty useful to a lot of people:
1999 Mar 30
0
Example(persp) fails in 0.63.4 and 0.64 (PR#152)
>From 0.63.4 or 0.64: > example(persp) persp> x <- seq(-10, 10, length = 50) persp> y <- x persp> f <- function(x, y) { r <- sqrt(x^2 + y^2) 10 * sin(r)/r } persp> z <- outer(x, y, f) persp> z[is.na(z)] <- 1 persp> par(bg = "white") persp> persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue")
2004 Oct 26
1
persp(), scatterplot3d(), "..." argument
Hello list. I very often need 3d scatterplots, and use scatterplot3D quite a lot. I am trying to modify persp() to plot scatterplots, and make use of the theta and phi arguments that persp() offers. I am having some difficulty passing the correct arguments to persp(). Here is my function so far. Much of it is copied from the persp() manpage. points3d <- function(x,y,z,
2004 Oct 26
1
persp(), scatterplot3d(), "..." argument
Hello list. I very often need 3d scatterplots, and use scatterplot3D quite a lot. I am trying to modify persp() to plot scatterplots, and make use of the theta and phi arguments that persp() offers. I am having some difficulty passing the correct arguments to persp(). Here is my function so far. Much of it is copied from the persp() manpage. points3d <- function(x,y,z,
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.
2003 Jun 05
1
persp(), par() and axis()
Dear R experts, On explanation of persp() parameters the last item is: ...: additional graphical parameters (see `par'). However, setting the `tcl' parameter has no any effect. I guess that axes are added to persp() in somewhat freakish way, and have nothing in common with axis() function. I found the very useful trans3d() function in persp() help page, and I'd like to use it
2001 Aug 07
1
multiple persp plots
Hello, I would like to plot two superposed surfaces (original data, and smoothed models). Basically, I would like to create a usual persp plot with box, and then superpose a second surface (without box and axes) on the top plane of the box defined by the first graph. I don't know if it is clear :-( Is it possible to draw such a second surface in an existing persp plot in R? Another (related)
2012 Jul 05
1
Adding Text to a persp plot using specific coordinates
Hi folks, I'm experiencing some hassle to add some text on a persp plot... Here is the code to generate the persp plot: x <- seq(-1.95, 1.95, length = 30) y <- seq(-1.95, 1.95, length = 30) z <- outer(x, y, function(a,b) a*b^2) persp(x, y, z,xlim=c(-2,2),ylim=c(-2,2),zlim=c(-8,8), phi=30, theta=-30,nticks=8,ticktype="detailed") I've tried the text() function :
1999 Feb 01
0
persp on x,y,z
I have 3 vectors x,y,z: x<-c(-2.88,-1.92,-.96,0,.96,1.92,2.88,3.84, -1.92,-.96,0,.96,1.92,2.88,3.84, -.96,0,.96,1.92,2.88,3.84, 0,.96,1.92,2.88,3.84, .96,1.92,2.88,3.84, 1.92,2.88,3.84, 2.88,3.84, 3.84) y<-c(rep(-3.84,8), rep(-2.88,7), rep(-1.92,6), rep(-.96,5), rep(0,4), rep(.96,3), rep(1.92,2), 2.88) z<-c(.65,1.78,2.4,2.54,3.04,2.22,2.97,3.56, .745,1.287,1.98,1.91,2.02,2.24,2.95,
2011 Mar 18
0
keep color range constant across three persp() graphs
Hi All. I have created two, 3-D, color graphs using persp(). Z values range from 1 to 100 on the first plot, and 0.5 to 50 on the second plot. I would like to keep the color range constant between the two graphs, rather than each graph showing the full range of colors. So the first graph should go from yellow to red and the second graph should go from yellow to orange. Below I present a
2007 Sep 10
1
persp() problem
I am having some trouble getting the persp() package to change the x and y axis on a 3d plot. It defaults to the [0,1] interval and when I try to change it I get errors. Example: This works: ------------ D <- c(1,2,3,4,5,6,7,8,9,10) M <- c(11,12,13,14,15,16,17,18,19,20) DM <- cbind(D,M) persp(DM, theta = 40, phi = 30, expand = 0.5, col = "lightblue", ltheta = 120,
1999 Jan 19
1
axis labels and ticks in persp
1. This doesn't work persp(x,y,z,col="grey",xlab="x",ylab="y",zlab="z") but I can get axis lables on x and y by persp(x,y,z,col="grey") title(xlab="x", ylab="y") BUT I can't figure out how to get a label for z. How to do it? 2. To be be consistent with image(), I think persp should make z the axis it now calls y (and
2010 Apr 20
1
3D surface plot with wireframe or persp?
Hello Dear, I have a function, like z=f(x,y), and try a surface plot with this function. But, on the reference of "wireframe" requires data option, so I generated x and y, and computed z with them. But, still I have a problem to draw a surface plot. The code and errors are ################################################## mle_beta0=64.43707; mle_beta1=-24365.16; # generating for
2007 Jul 16
0
Dates in 'persp' plots
Hello, I would like to have the y axis show dates in a 3D 'persp' plot. The following example works... x <- spot y <- as.numeric(dates) # class(dates) produces output [1] "Date" z <- t(price) persp(x, y, z, ticktype="detailed") ...however the y axes contains 'meaningless' integers (days since 1970-01-01 is not very intuitive!) Changing the
2018 Jul 16
0
persp command
On 7/16/2018 7:28 AM, Christian Rau wrote: > Dear R-devel mailing list, > > I am wondering whether the "theta" and "phi" parameters of the "persp" > function > in the graphics commands are named in error (the names seem to have been > swapped). Not that it is authoritative, but one gleans from wikipedia,
2001 Oct 24
1
How change the size of persp() axis labels?
Hi, I have been using the persp() function to plot species response surfaces based on GAMs (using package mgcv). Everything works fine, except that I have a slight problem when it comes to producing a figure with multiple (4 - 6) persp() plots on it. The axis labels remain the same size, no matter how large or small the plot is, causing some overlap when the multiplot figure is produced. Is