Displaying 20 results from an estimated 2000 matches similar to: "persp greek label problem (PR#583)"
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,
2004 Aug 10
1
persp, array and colors
Dear R-users,
I'd like to plot a three-dimensional surface and at the meantime I'm using
an array. I would like to have the values of my first matrix in the heights
of the plot and the colors of the single facet taking into account the
second matrix.
I hope that the next code will help all of you to understand better my
issue,
Thanks in advance, Giancarlo
############################
##
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 May 26
1
persp(); help with 'tck' option
Hi All,
I'm using 'tck' option to *reduce* the length of tick marks but it is not
working, can anyone please tell me where I'm going wrong...
require(graphics)
require(grDevices)
x <- seq(-10, 10, length= 30)
y <- x
f <- function(x,y) { r <- sqrt(x^2+y^2); 10 * sin(r)/r }
z <- outer(x, y, f)
z[is.na(z)] <- 1
# 'bg' works but 'tck' is not showing
2002 Mar 18
2
persp(): add second plane (second, long question)
Thank you for your replies so far.
Sorry for bothering you again, but I'm still not able to get what I need as
I don't understand all parts of the replies (just using R for easy
things....).
Is there a code for plane3d() like some of you sent me for points3d()? I was
not able to get that out of the scatterplot3d package...
What I can do is to get the x,y and z-range for the xlim,ylim and
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 :
2011 Oct 27
2
vis.gam zlab problem
I am using the mgcv package to develop vis.gam plots and having trouble
figuring out how to relabel the z-axis (image attached). It is currently
labeled as "linear predictor," but I would like to change it to a different
name. Currently I am using this code:
vis.gam(model1,theta=320,ticktype="detailed",color="gray",nCol=12,
zlab="BCS")
However, when run
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
2005 Mar 16
1
Help in persp (VERY URGENT ASSISTANCE)
Dear All,
I am very new to R projects.May be i am wrong in some steps.I have given the code which i tried for drawing 3d surface using persp.I need to label the axes with scales
z <- array(topnew2$V2, dim=c(600,2))
x <- 10 * (1:nrow(z))
y <- (1:ncol(z))
persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue", xlab ="fluidlevel", ylab
2008 Jun 12
1
Problems with mars in R in the case of nonlinear functions
Hi,
I'm trying to use mars function in R to interpolate nonlinear
multivariate functions.
However, it seems that mars gives me a fit which uses only very few
basis function and
it underfits very badly.
For example, I have tried the following code to test mars:
require("mda")
f <- function(x,y) { x^2-y^2 };
#f <- function(x,y) { x+2*y };
# Grid
x <-
2013 Jun 25
1
Correct scaling of axis in persp3d plot
Hi,
I want to format my axis in my persp3d plot.
With my data, which I attached I created a persp3d plot with the following code, which I summarized from different code snippets I found:
library(rugarch)library(rgl)library(fGarch)fd <-as.data.frame(modelfit,which ='density')color <-rgb(85,141,85,maxColorValue=255)x <-seq(-0.2,0.2,length=100)y <-c(1:2318)f
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
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,
2005 Feb 16
5
Repeating grey scale in graph?
Dear R users,
Could somebody tell me why the grey color ramp is repeated in this
graph, eventhough the ramp values go from 0 to 1? I must be missing
something obvious, but I can not see it!
z <-
c(0.064329041,0.117243316,0.161565116,0.19923015,0.231642175,0.259835539,0.284571226,
0.038507288,0.094184749,0.140959431,0.180803984,0.215159105,0.245096084,0.271412845,
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
2002 Mar 14
1
persp(): add second plane
Dear R-users,
is it possible to add a second plane to the persp()-plot? I couldn't find
any hint on that in the news archive...
I'm using R.1.4.1 for Windows.
Thanks in advance,
Nina
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2002 Mar 14
1
persp(): add second plane
Dear R-users,
is it possible to add a second plane to the persp()-plot? I couldn't find
any hint on that in the news archive...
I'm using R.1.4.1 for Windows.
Thanks in advance,
Nina
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2008 Jun 24
2
persp plot
I have a set of data in the form
x1, y1, z1
x1, y2, z2
...
x1, yN, zN
x2, y1, z(N+1)
x2, y2, z(N+2)
...
x2, yN, z(2N)
...and so on...
xM, yN, val(M*N)
I have been trying to figure out how to get R to use this data in a
persp plot. So far the only thing that I can figure out to do is to
break the data file into three different files. The first file
contains the x-coordinate data:
x1
x2
2003 Jul 12
2
help with bivariate density plot question
Dear R users:
I have a dataset with two variables (>20000 observations, two samples from same subject) and I used "kernSur" from library(Genkern) to
get a estimated bivariate density and corresponding plots as follows:
new.data.normal<-data.normal[!is.na(data.normal[,2]),]
x<-new.data.normal[,2]
y<-new.data.normal[,3]
op <- KernSur(x,y, xgridsize=50, ygridsize=50,
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