Displaying 20 results from an estimated 10000 matches similar to: "change axis labels in persp"
2002 Apr 12
1
persp(): z-axis annotation overwrites numbers at tickmark
Dear R-users
first, thanks to Paul Murrell for fixing my problem "What line is labeled in
persp()".
It works great now (in the development version).
One more question (I don't know if it's related to the "old" problem): the
annotation on the z-axis
overwrites the numbers at the tickmarks and sometimes, if numbers are pretty
long, the numbers themselfe overlap the
2002 Apr 02
2
label tickmarks in persp()-plot
Dear R-users,
is there a way to label the tickmarks other than persp does it? I didn't
find anything on that in the archive.
To plot the surface with equi-distant tickmarks, I assigned
x<-c(1:6)
y<-x
persp(x,y,z,....)
Instead of labels 1 to 6, I need something like 0.05, 0.1,10,15,100,1000.
Any hint and help appreciated,
Nina
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
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
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
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
2011 Jun 08
1
3D-plotting a 2D-matrix that contains z-values (3rd dimension)
Hello,
say I have a 2D-matrix (indexed by x and y), which contains
z values, which I want to plot over x-y.
Either dotted, or if possible as a landscape.
I tried around with persp and plot3d (from rgl)
and persp3d (from rgl).
I sometimes get something that looks good and a while later, when
trying some new data I need to worry about that again.
Is there something lika a convenience function
2017 Oct 19
1
overlaying points and lines on a surface3d rgl plot with axes
Hi R users and experts,
I am interested in learning more about the use of 3D plots. Specifically, I
want to add points and lines to a surface plot. And get the axes and labels
plotted also. Here is what I have tried with an example data set :
library(rgl)
vol2 <- 2*volcano # Exaggerate the relief
library(reshape)
mvol2 <- melt(vol2)
str(mvol2)
# First, persp and persp3d plots do not succeed
2009 Mar 19
1
two plots side-by-side with persp3d(rgl)
Dear R-users,
I would like to place two 3D plots side-by-side in a rgl-setting. It would nice to have something like "par(mfrow=c(1,2))" for basic plots, or an array framework for wireframe(lattice) (see example below). I only managed to overlap two persp3d plots.
My final idea would be to animate both surfaces using play3d(rgl).
Thanks in advance for any help.
Best,
Carlo Giovanni
2011 Dec 29
2
3d plotting alternatives. I like persp, but regret the lack of plotmath.
I have been making simple functions to display regressions in a new
package called "rockchalk". For 3d illustrations, my functions use
persp, and I've grown to like working with it. As an example of the
kind of things I like to do, you might consult my lecture on
multicollinearity, which is by far the most detailed illustration I've
prepared.
2013 Oct 15
1
plotting a marginal distribution on the plane behind a persp() plot
R'istas:
I am trying to plot a marginal distribution on the plane behind a persp() plot. My existing code is:
library(MASS)
X <- mvrnorm(1000,mu=c(0,0),Sigma=matrix(c(1,0,0,1),2))
X.kde <- kde2d(X[,1],X[,2],n=25) # X.kde is list: $x 1*n, $y 1*n, $z n*n
persp(X.kde,phi=30,theta=60,xlab="x_b",ylab="x_a",zlab="f") ->res
Any suggestions are very
2007 Mar 16
0
How can I place axis annotations away from axis?
Hello Experts
I have the following codes and data for 2 interpolation plots.
http://www.nabble.com/file/7206/3d_plot_data.txt 3d_plot_data.txt
data<-read.table("3d_plot_data.txt", header=T)
attach(data)
par(mfrow=c(1,2))
library(akima)
interpolation<-interp(rr,veg_r,predict)
persp(interpolation,theta = -45, phi = 30, ticktype = "detailed", nticks=4,
cex=0.8,
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
2008 Jul 03
2
Plotting Prediction Surface with persp()
Hi all
I have a question about correct usage of persp(). I have a simple neural
net-based XOR example, as follows:
library(nnet)
xor.data <- data.frame(cbind(expand.grid(c(0,1),c(0,1)), c(0,1,1,0)))
names(xor.data) <- c("x","y","o")
xor.nn <- nnet(o ~ x + y, data=xor.data, linout=FALSE, size=1)
# Create an (x.y) surface and predict over all points
d <-
2009 Nov 22
1
"Over-coloring" facets on persp() plot
Dear R Community:
Recently, I have managed to plot some really useful graphs of my
research data using persp(). I have even figured out how to overplot
rectangular regions (corresponding to submatrices) with a different
color. This is accomplished by using par(new=T). I am now searching
for a way to "highlight" a set of (possibly non-contiguous) facets with
a specific color,
2007 Jul 23
2
persp and greek symbols in the axes labels
Hello,
I am plotting a 3D function using persp and I would like to use greek
symbols in the axes labels.
I have found examples like this one on the web:
plot(0,0,xlab=expression(kappa[lambda]),ylab=substitute(paste(phi,"=",true,sigma),list(true=5)))
this works well with plot but not with persp:
with the command
persp(M,theta = -20,phi =
2013 Oct 08
2
graphics:persp - suggestion
Dear Devels,
I'm not sure if I'm going the right way by mailing to this list. I have two
suggestions regarding the persp function from the graphics package:
1. In the documentation of the persp function, it is said, that the "col"
argument will ignore transparent colors. However, this is not true, if you
use strings as color code - at least it works with HEX-code (eg. :
2002 Nov 04
0
persp(), x- and y-axis with character strings
Dear R list,
I want to plot the yield curve in a 3D graph: the x-axis refers to time; the
y-axis refers to the maturities and the z-axis are the yields.
The following code works fine:
persp(y, x, as.matrix(ypper), xlab="Last 50 periods", ylab="Maturities
(months)",zlab="Yields",
zlim=c(3,6),theta=130, phi=15, col="Seagreen", box=T,
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)
2010 Jul 30
2
Layering multiple persp plots
Hi all,
I've got two persp plots with Identical X and Y's, and I'd like to plot them
on the same graph, so that it is obvious where one plot is above the other.
I can't find any mention of this anywhere. Do I need to use wireframe?
Any help is appreciated.
Thanks,
--
Ian Bentley
M.Sc. Candidate
Queen's University
Kingston, Ontario
[[alternative HTML version deleted]]