Re: [R] Wireframe plot inside a function

2017-04-21 Thread George Trojan - NOAA Federal
But it works ;-). According to print.trellis help, 'plot' is an alias for 'print'. IMO, this is an abuse of overloading: same method name does totally different things. On 21 April 2017 at 21:58, Jeff Newmiller wrote: > No... it is > > print(plot(cop1, main = "cop1 function")) > > -- > Sent from

Re: [R] Wireframe plot inside a function

2017-04-21 Thread Jeff Newmiller
No... it is print(plot(cop1, main = "cop1 function")) -- Sent from my phone. Please excuse my brevity. On April 21, 2017 1:56:00 PM PDT, George Trojan - NOAA Federal wrote: >I see. So, if I don't care about the plot object itself, the proper >incantation is > >plot(plot(cop1, main = "cop1 fu

Re: [R] Wireframe plot inside a function

2017-04-21 Thread George Trojan - NOAA Federal
I see. So, if I don't care about the plot object itself, the proper incantation is plot(plot(cop1, main = "cop1 function")) Thanks again. On 21 April 2017 at 20:32, Jeff Newmiller wrote: > Your original function created the cop1 plot object but did nothing with it. > It then created the cop2

Re: [R] Wireframe plot inside a function

2017-04-21 Thread Jeff Newmiller
Your original function created the cop1 plot object but did nothing with it. It then created the cop2 plot and returned it from the function. Since you had invoked the cplot function from the interactive console, R printed that returned object automatically, which displayed the plot. FYI: when

Re: [R] Wireframe plot inside a function

2017-04-21 Thread George Trojan - NOAA Federal
Thanks. After changing the function to cplot <- function(cop1, cop2) { x11() o <- plot(cop1, main = "cop1 function") print(o) x11() o <- plot(cop2, main = "cop2 function") print(o) } I see both plots. But, since "cop2 function" was plotted before, does it mean it is plotted twice now?

Re: [R] Wireframe plot inside a function

2017-04-21 Thread Jeff Newmiller
FAQ 7.22 And don't send HTML email... you are the one making it difficult for us to read your question. -- Sent from my phone. Please excuse my brevity. On April 21, 2017 8:27:20 AM PDT, George Trojan - NOAA Federal wrote: >Consider the following example: > >library("kdecopula") >library("mv

[R] Wireframe plot inside a function

2017-04-21 Thread George Trojan - NOAA Federal
Consider the following example: library("kdecopula") library("mvtnorm") pobs <- function(x) rank(x) / (length(x) + 1) n <- 1000 sigma1 <- diag(x = 1, 2, 2) x1 <- rmvnorm(n, sigma = sigma1) xx1 <- apply(x1, 2, pobs) cop1 <- kdecop(xx1) eps <- 0.8 sigma2 <- matrix(c(1, eps, eps, 1), ncol = 2) x2

Re: [R] wireframe and margins

2012-12-24 Thread David Winsemius
On Dec 24, 2012, at 1:30 AM, krusty the klown wrote: > Thanks, I'm setting now the mai parameter, but it is not so intuitive how it > works with persp... > Sometimes specialized functions will coerce par options and one needs to work around of hack the code. I don't know if this is the case in

Re: [R] wireframe and margins

2012-12-24 Thread krusty the klown
Thanks, I'm setting now the mai parameter, but it is not so intuitive how it works with persp... -- View this message in context: http://r.789695.n4.nabble.com/wireframe-and-margins-tp4653838p4653865.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] wireframe and margins

2012-12-23 Thread David Winsemius
On Dec 23, 2012, at 9:43 AM, krusty the klown wrote: Hi everybody, I'm working with wireframe (and persp) functions, and I'm not able to set the margins between the 3d plot and the R window... It should be easy, innit?, but I can't find out which parameters I have to change... Any help? Than

[R] wireframe and margins

2012-12-23 Thread krusty the klown
Hi everybody, I'm working with wireframe (and persp) functions, and I'm not able to set the margins between the 3d plot and the R window... It should be easy, innit?, but I can't find out which parameters I have to change... Any help? Thanks, ktk -- View this message in context: http://r.789695

Re: [R] wireframe and par(mfrow)

2012-05-07 Thread Simone Gabbriellini
Thanks a lot for pointing me to that! Best, Simone 2012/5/7 David Winsemius : > > On May 7, 2012, at 7:15 AM, Simone Gabbriellini wrote: > >> Hello List, >> >> I have some plots with the wireframe() function, and I'd like to >> display them in a single jpeg file. I know that par(mfrow=c(x,y)) wil

Re: [R] wireframe and par(mfrow)

2012-05-07 Thread David Winsemius
On May 7, 2012, at 7:15 AM, Simone Gabbriellini wrote: Hello List, I have some plots with the wireframe() function, and I'd like to display them in a single jpeg file. I know that par(mfrow=c(x,y)) will divide my display window in x rows and y columns, and although this works with plot(), it l

[R] wireframe and par(mfrow)

2012-05-07 Thread Simone Gabbriellini
Hello List, I have some plots with the wireframe() function, and I'd like to display them in a single jpeg file. I know that par(mfrow=c(x,y)) will divide my display window in x rows and y columns, and although this works with plot(), it looks like it's not working with wireframe. here's my code:

Re: [R] Wireframe, custom x-axis values

2011-06-06 Thread David Winsemius
Im plotting some data with wireframe() like so: wireframe(result ~ u * r, myData, scales=list(arrows=FALSE)) However, I would really like to display something different for the displayed values of "u" rather than the actual values. This is because my u-values are a sequence of quantiles of myDa

Re: [R] Wireframe, custom x-axis values

2011-06-06 Thread Peter Ehlers
On 2011-06-06 06:33, Rbjørn Nicolaisen wrote: Hi, Im plotting some data with wireframe() like so: wireframe(result ~ u * r, myData, scales=list(arrows=FALSE)) However, I would really like to display something different for the displayed values of "u" rather than the actual values. This is be

[R] Wireframe, custom x-axis values

2011-06-06 Thread Rbjørn Nicolaisen
Hi, Im plotting some data with wireframe() like so: wireframe(result ~ u * r, myData, scales=list(arrows=FALSE)) However, I would really like to display something different for the displayed values of "u" rather than the actual values. This is because my u-values are a sequence of quantiles of

Re: [R] wireframe advice - with reproducible code

2011-05-16 Thread Duncan Murdoch
On 16/05/2011 11:17 AM, Chris Mcowen wrote: Thanks for this, With the data i have what is the best method to convert it into the required matrix, as i am a little unsure how it would be done - i imagine this must be a common task? You can't convert it. Your data doesn't form a surface. You

Re: [R] wireframe advice - with reproducible code

2011-05-16 Thread Chris Mcowen
Thanks for this, With the data i have what is the best method to convert it into the required matrix, as i am a little unsure how it would be done - i imagine this must be a common task? Chris On 16 May 2011, at 16:05, Duncan Murdoch wrote: On 16/05/2011 10:57 AM, Chris Mcowen wrote: > Sorry,

Re: [R] wireframe advice - with reproducible code

2011-05-16 Thread Chris Mcowen
Sorry, My bad - I have notice you can remove the data call when using this and it works the same, also FD is the same as Residual_FD i just forgot i coded it different. wireframe(FD ~ Elevation * Temperature, scales = list(arrows = FALSE), drape = TRUE, colorkey = TRUE) Sorry and thanks agai

Re: [R] wireframe advice - with reproducible code

2011-05-16 Thread Duncan Murdoch
On 16/05/2011 8:40 AM, Chris Mcowen wrote: Dear List, i am trying to produce a 3d plot using wireframe using the code: wireframe(Residuals_FD ~ Elevation * Temperature, data = data2, scales = list(arrows = FALSE), drape = TRUE, colorkey = TRUE) As you can see when the code (using the data bel

[R] wireframe advice - with reproducible code

2011-05-16 Thread Chris Mcowen
Dear List, i am trying to produce a 3d plot using wireframe using the code: wireframe(Residuals_FD ~ Elevation * Temperature, data = data2, scales = list(arrows = FALSE), drape = TRUE, colorkey = TRUE) As you can see when the code (using the data below) is run the plot area is set-up correctly

Re: [R] wireframe() display a graph with two colors, not a gradient.

2011-03-07 Thread Deepayan Sarkar
On Sun, Feb 27, 2011 at 1:29 AM, James Platt wrote: > Hi all, > > I'm quite new to wireframe, essentially what I want to do is display a graph, > and z-values > 1 would be yellow and those < 1 would be blue. > This is a bit of my data. > > 0.334643563     0.350913807     0.383652307 > 0.370325283

[R] wireframe() display a graph with two colors, not a gradient.

2011-02-26 Thread James Platt
Hi all, I'm quite new to wireframe, essentially what I want to do is display a graph, and z-values > 1 would be yellow and those < 1 would be blue. This is a bit of my data. 0.334643563 0.350913807 0.383652307 0.370325283 0.38779016 0.4238

Re: [R] wireframe() help {Lattice}

2010-02-11 Thread Dieter Menne
Kim Jung Hwa wrote: > > I'm trying a 3D-plot using wireframe() from Lattice package. Below is my > code and sample data (read in "dta" object). > > I'm wondering if it is possible to make center grid (curved) line more > prominent (or bold). The curved line I'm talking about is the center > lin

[R] wireframe() help {Lattice}

2010-02-11 Thread Kim Jung Hwa
Hi All, I'm trying a 3D-plot using wireframe() from Lattice package. Below is my code and sample data (read in "dta" object). I'm wondering if it is possible to make center grid (curved) line more prominent (or bold). The curved line I'm talking about is the center line drawn for a fixed value of

[R] wireframe - different axes on each panel

2009-09-03 Thread Crimin Kimberly
Hi, I would like to create wireframe plots conditional on 2 variables and use different limits for the 3-axes in each plot. I thought I could do this with subscripts and the panel.wireframe but I haven't been successful. I am getting this error "...multiple actual arguments..." so I definitel

Re: [R] wireframe color

2009-08-03 Thread Deepayan Sarkar
On Mon, Aug 3, 2009 at 9:36 AM, Marlin Keith Cox wrote: > Hello, hopefully simple question, but I cannot find the answer.  I need to > change the color from the standard default.  Still want the scaled colors, > but need different colors for different graphs. > > Code is: > > wireframe(z ~ y*x, mat

[R] wireframe color

2009-08-03 Thread Marlin Keith Cox
Hello, hopefully simple question, but I cannot find the answer. I need to change the color from the standard default. Still want the scaled colors, but need different colors for different graphs. Code is: wireframe(z ~ y*x, mat.df, drape = TRUE, zlab = list("Water mass error

[R] wireframe color

2009-07-30 Thread Marlin Keith Cox
Hello, hopefully simple question, but I cannot find the answer. I need to change the color from the standard default. Still want the scaled colors, but need different colors for different graphs. Code is: wireframe(z ~ y*x, mat.df, drape = TRUE, zlab = list("Water mass error

[R] wireframe color change from default

2009-07-30 Thread Marlin Keith Cox
Hello, hopefully simple question, but I cannot find the answer. I need to change the color from the standard default. Still want the scaled colors, but need different colors for different graphs. Code is: wireframe(z ~ y*x, mat.df, drape = TRUE, zlab = list("Water mass error

Re: [R] wireframe 3-D problems

2009-05-17 Thread Xu Jun
Ben, Thank you for your help! Jun [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide c

Re: [R] wireframe 3-D problems

2009-05-16 Thread Ben Bolker
Xu Jun wrote: > > I am trying to graph a 3-D graph of simulated data for logit models using > the powerful wireframe command, but I got stuck. Here are the codes: > > x <- seq(-4, 4, by=0.01) > y <- seq(-4, 4, by=0.01) > p <- 1/(1+exp(-0.12*x + 0.35*y)) > mydata <- cbind(x, y, p) > require

[R] wireframe 3-D problems

2009-05-16 Thread Xu Jun
Dear All R Users, I am trying to graph a 3-D graph of simulated data for logit models using the powerful wireframe command, but I got stuck. Here are the codes: x <- seq(-4, 4, by=0.01) y <- seq(-4, 4, by=0.01) p <- 1/(1+exp(-0.12*x + 0.35*y)) mydata <- cbind(x, y, p) require(lattice) wirefr

[R] Wireframe - labels on z-axis overlap with tick marks

2008-11-08 Thread Andrzej Szymanski
Hello, I'm trying to get the z-axis labels in the right place - they overlap with the tick marks and axis. How can I move them them to the left? wireframe(volcano,zlab="",scales = list(arrows=F,z=list(labels=c(1:100)/1000))) Thanks, Andrzej -- Andrzej Szymański, M.Sc. tel. +48 12 6174035

Re: [R] wireframe

2008-11-06 Thread Greg Snow
f Of Bill Szkotnicki > Sent: Thursday, November 06, 2008 8:39 AM > To: r-help@r-project.org > Subject: [R] wireframe > > I've been using lattice/wireframe succesfully to visualize some data. > I have one question. > I want to be able to change the viewpoint ( i.e. rotate

Re: [R] wireframe

2008-11-06 Thread jim holtman
Try the 'rgl' package. On Thu, Nov 6, 2008 at 10:38 AM, Bill Szkotnicki <[EMAIL PROTECTED]> wrote: > I've been using lattice/wireframe succesfully to visualize some data. > I have one question. > I want to be able to change the viewpoint ( i.e. rotate the plotted figure a > bit left or right or up

Re: [R] wireframe

2008-11-06 Thread Kornelius Rohmeyer
Am Donnerstag, den 06.11.2008, 10:38 -0500 schrieb Bill Szkotnicki: > I've been using lattice/wireframe succesfully to visualize some data. > I have one question. > I want to be able to change the viewpoint ( i.e. rotate the plotted > figure a bit left or right or up and down ) > Is there a way to

[R] wireframe

2008-11-06 Thread Bill Szkotnicki
I've been using lattice/wireframe succesfully to visualize some data. I have one question. I want to be able to change the viewpoint ( i.e. rotate the plotted figure a bit left or right or up and down ) Is there a way to do that? Or is there some other package around that could help? Thanks. __

Re: [R] wireframe - add data points

2008-05-03 Thread Strubbe Diederik
Dear Deepayan, I am sorry to bother you again, but I have some more questions on the R wireframe : - when plotting an interaction between two variables, originating from a logistic model with several factors : what happens to the other variables (ie the ones not plotted)? Are they set to 0

Re: [R] wireframe - add data points

2008-04-30 Thread Deepayan Sarkar
On 4/30/08, Strubbe Diederik <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm trying to add some data points to a wireframe. X an Y axis are > independent variables, Z axis is predicted probability. I'd like to add the > original data points on which the predicted probabilities are based to the

[R] wireframe - add data points

2008-04-30 Thread Strubbe Diederik
Hello all, I’m trying to add some data points to a wireframe. X an Y axis are independent variables, Z axis is predicted probability. I’d like to add the original data points on which the predicted probabilities are based to the wireframe. I’ve followed some of the previous post on this but get

Re: [R] Wireframe graph: black and white shading instead of color

2007-11-29 Thread Deepayan Sarkar
On 11/29/07, David Afshartous <[EMAIL PROTECTED]> wrote: > > > All, > > The code below produces a color 3D graph. I'd like to make it black and > white shading. I tried setting col.regions to FALSE but this just made it > completely white. I want the graph to look exactly as is, except black (or

[R] Wireframe graph: black and white shading instead of color

2007-11-29 Thread David Afshartous
All, The code below produces a color 3D graph. I'd like to make it black and white shading. I tried setting col.regions to FALSE but this just made it completely white. I want the graph to look exactly as is, except black (or grey) and white shading. Is this possible? Cheers, David p.list

Re: [R] wireframe shade=T colorkey

2007-10-12 Thread Deepayan Sarkar
On 10/12/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 10/11/2007 6:32 PM, Deepayan Sarkar wrote: > > On 10/11/07, Karim Rahim <[EMAIL PROTECTED]> wrote: > >> Thank you for your reply. > >> > >> In this graphics context, I'm not sure what the incident or reflected > >> light rays are. > >> > >

Re: [R] wireframe shade=T colorkey

2007-10-12 Thread Duncan Murdoch
On 10/11/2007 6:32 PM, Deepayan Sarkar wrote: > On 10/11/07, Karim Rahim <[EMAIL PROTECTED]> wrote: >> Thank you for your reply. >> >> In this graphics context, I'm not sure what the incident or reflected >> light rays are. >> >> May I ask for an example of using a colour key with the volcano data

Re: [R] wireframe shade=T colorkey

2007-10-11 Thread Karim Rahim
Hi, colorkey: logical indicating whether a color key should be drawn alongside, or a list describing such a key. See 'levelplot' for details. So I would like an appropriate colour key (legend perhaps) mapping the colours to the z-axis values. Ex: wireframe(volcano, drape = T

Re: [R] wireframe shade=T colorkey

2007-10-11 Thread Deepayan Sarkar
On 10/11/07, Karim Rahim <[EMAIL PROTECTED]> wrote: > Thank you for your reply. > > In this graphics context, I'm not sure what the incident or reflected > light rays are. > > May I ask for an example of using a colour key with the volcano data > using the colours that appear when you select the sh

Re: [R] wireframe shade=T colorkey

2007-10-11 Thread Karim Rahim
Thank you for your reply. In this graphics context, I'm not sure what the incident or reflected light rays are. May I ask for an example of using a colour key with the volcano data using the colours that appear when you select the shade option? It is simple to have the colour key appear using dr

[R] wireframe shade=T colorkey

2007-10-11 Thread Karim Rahim
Hi, I am using wireframe with shade=T and I would like a colour key that matches the colours produced with the option shade=T. How do I do this? Thanks, Karim __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do