Displaying 20 results from an estimated 3000 matches similar to: "error with persp()- increasing 'x' and 'y' values expected"
2006 Apr 25
3
persp plot increasing 'x' and 'y' values expected
hello,
i do the following in order to get an persp-plot
x<-c(2,2,2,2,2,2,3,3,3,3)
y<-c(41,41,83,83,124,166,208,208,208,208)
z<-c(90366,90366,92240,92240,92240,96473,100995,100995,100995,100995)
x<-data$x
y<-data$y
z<-matrix(data$z,length(y),length(x))
persp(x,y,z, col="gray")
but i always get the error message increasing 'x' and 'y' values
expected,
2018 May 16
0
Systemfit
Sadly you failed to set your email program to send plain text and the data is corrupted at my end.
I also think you need to reduce the size of the data set... the intent here is to increase your understanding, not debug your particular analysis.
I will say that I am having a very challenging time understanding what you are trying to accomplish though. What are the equations that you think need
2018 May 16
1
Systemfit Question
I can't get my simultaneous equations to work using system fit. Please help.
#Reproducible script
Empdata<- read.csv("/Users/ngwinuiazenui/Documents/UPLOADemp.csv")
View(Empdata)
str(Empdata)
Empdata$gnipc<-as.numeric(Empdata$gnipc)
install.packages("systemfit")
library("systemfit")
pdata <- plm.data(Empdata,
2018 May 15
2
Systemfit
OK, Let's try this again! Here is the reproducible script; it is long because I had to copy the panel dataset here. My question is related to systemfit; I don't know how to get the result for the entire panel.
#Reproducible script
Empdata<- read.csv("/Users/ngwinuiazenui/Documents/UPLOADemp.csv")
View(Empdata)
install.packages("systemfit")
2006 Jun 25
1
Puzzled with contour()
Folks,
The contour() function wants x and y to be in increasing order. I have
a situation where I have a grid in x and y, and associated z values,
which looks like this:
x y z
[1,] 0.00 20 1.000
[2,] 0.00 30 1.000
[3,] 0.00 40 1.000
[4,] 0.00 50 1.000
[5,] 0.00 60 1.000
[6,] 0.00 70 1.000
[7,] 0.00 80 0.000
[8,] 0.00 90
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
2004 Dec 15
3
adding perspectives to existing persp plots
I've created a perspective plot using 'persp' in the graphics package.
I'd like to add a second plane of z values to the existing plot, but I
cannot seem to do this using 'persp'. Is there an analogue to 'lines' or
'points' for perspectives?
Corey.
corey.bradshaw at cdu.edu.au
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
2003 Sep 08
2
Persp Plot
I am trying to graph two planes on the same graph using persp(). I can only
get one plane to plot at a time. Can someone explain how I can graph two
planes on the same graph using persp? I've looked throught the
documentation, but cannot find any references to appending a persp plot.
Thanks.
Sincerely yours,
Mark J. Lamias
Statistical Consultant
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.
2007 Apr 11
2
persp Error. x,y,z with the same length
Hello,
I have a problem in drawing a 3d graphic. I simplified the program to show you the problem.
I have a text file with hundreds of entries in 3 columns. I scaned these columns with matrix(scan). Then, I transformed some datas. Now I have the datas in h,x,y.
I created a new matrix to use persp . But I got an error. The reason is probably the same length of x,y,z.
But what can I do the draw
2018 Jul 16
2
persp command
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). Also, in the documentation to "persp", reference is made to
"colatitude"
when the effect in the image is actually that of "latitude".
Thank you,
2003 Sep 15
2
Persp and color
How can I control de "wrap-around" color behaviour in the persp
function ?
I am using something like :
persp(bb[1:100,2:97], col= rainbow(8,start=0.1, end=0.8)))
Depending on the rainbow length value I get several "wrap-around" blocks of
the selected color range...something that I wanted to avoid...
My idea is to use the color in order to make a separation from a
certain
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
2008 Mar 11
2
persp question
someone sent in a question earlier about doing
something in 3D so i took a stab at it purely
for educational purposes ( i'm not even sure that I understood the question actually ).
Unfortunately, persp gives me an error that I don't understand because it says "object y not found". I'm sending y in as a parameter to persp similar to what ?persp shows in one of oits examples
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,
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. :
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
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,