similar to: ticks on persp plot?

Displaying 20 results from an estimated 6000 matches similar to: "ticks on persp plot?"

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
2009 Mar 29
2
number of ticks in a persp() plot
Hi, I am trying to specify four ticks (at 0,1,2,3 for the y axis) in a persp plot but the defaults overrule my specification and I obtain seven of them. Is it possible to gain full control over them in such a plot? Here is my code: matlines=matrix(c(1:7,3:9,3:9,2:8),nrow=7,ncol=4)
2001 Mar 07
4
R.xpm?
I use AfterStep on Linux. I made an R.xpm file (attached) and put this icon in the "wharf". To invoke R I click on the R icon. I did not find an offical R.xpm, and so I am submitting this one for your collective consideration.... The idea behind the icon is that it looks like a scatterplot, which is "statistical". My main beefs with my R.xpm are that it doesn't have a
2005 Feb 01
0
persp plots axis tick-labels
Hi R-listers, I am having trouble with persp plotting and I hope some knowledgeable person can help me. I have searched the help files to no avail. I am sure there is a way of achieving this simple task. I thought in par maybe but that seems not to work for 3d plots. Maybe I have missed something. I read in ?persp that it expects increasing values for both my x and y axes, and a matrix
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,
2009 Nov 24
1
Cannot set wireframe ticks?
I have an issue when making a wireframe plot. I can't find any way to change the number of ticks on the labels. I try to set it in the code below with z.ticks=1, but that doesn't work. Is there anything that works? (Note. I need to use wireframe. persp is out of the question since I want mathematics in the axis labels). Here is some sample code: library(lattice) x <-
1999 Mar 10
1
persp( )
Hi, I would like to confirm w/ the other members if the function persp( ) has limitations such as not being able to label the axis... or, am I missing something? ?persp seems to indicate that's not available, but... Alvaro -- -- -- -- -- -- -- -- Alvaro A. Novo 2116 S. Orchard St., #304
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
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")
1999 Jun 10
2
limit digits in text()?
I am labelling the axes of a persp() plot manually using text(). For one spot in the plot I use: text(-.62,.37,max(dprime)) The problem is that the label is printed as 1.6456330961. I would like 1.6. I tried options(digits=2) and str(digits.d=2)--no effect. (I don't like these methods anyway since I just want to modify how the label in the plot is printed; I want to print all the digits
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 :
2000 Mar 04
0
Re: persp() problem
At 22:31 03/03/00 +0100, Troels Ring wrote: >Dear friends. A very humble admirer of the progress of R with a very simple problem. I have the data shown below > >month day year dosis vanco >12 31 1999 1 3.8 >1 3 2000 1 2.4 >1 7 2000 1 3.4 >1 12 2000 2 7.1 >1 14 2000 2 5.3 >1 17 2000 2 5.7 >1 19 2000 3 7.7 >1 21 2000 3 8.3 >1 24 2000 4 8.7 >1 26 2000 4
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,