Skip to content

changing angle in scatterplot3d

11 messages · Rishabh Gupta, Uwe Ligges, Daniel Mastropietro +4 more

#
Hi all,
    I was wondering whether it is possible to change the angle of all axis in a scatterplot3d graph. I know that there is one
parameter <angle> but I was wondering whether it is possible to control the angle of all different axis individually (eg by using
<anglex><angley><anglez>).
In addition I was wondering whether there is a way to change the angle of a plot after all the data has been saved. E.G I want to
see the graph from many different angles without having to feed all the points into it repeatedly.
Any help would be greatly appreciated.

Many Thanks

Rishabh

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Rishabh Gupta wrote:
Nothing of your request is possible. If you want to rotate a plot
(interactively), I'd suggest to look at

1) cloud() in package lattice, or

2) the package RGL (Windows only, available at Duncan Murdoch's
homepage), or

3) the data visualiziation system "ggobi", available at
http://www.ggobi.org/ (R interfaces are also available)


Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Hi,
    Thanks for your reply.
    I had a look at both the cloud() function and the ggobi system. For my work what I need to do is save copies of a 3d plot from
many different files. So essential the procedure would be:
        1.    set and configure the data and create the plot
        2.    change the angle by X ammount
        3.    save to file
        4.    repeat 2. and 3.
All this has to run in a script so it should be automatable. Ggobi is interactive but as I understand it, it is not automatable. The
cloud() function would be ideal but unfortunately it is not yet fully implemented.
I think I can use the angle function within scatterplot3d. I was just wondering one thing. Is it possible to change the angle of a
3d plot after all the data has been set and all the other configuration information has been set?

Many Thanks For Your Help!

Rishabh
----- Original Message -----
From: "Uwe Ligges" <ligges at statistik.uni-dortmund.de>
To: "Rishabh Gupta" <rg117 at ohm.york.ac.uk>
Cc: <r-help at stat.math.ethz.ch>
Sent: Wednesday, July 10, 2002 7:34 AM
Subject: Re: [R] changing angle in scatterplot3d


|
|
| Rishabh Gupta wrote:
| >
| > Hi all,
| >     I was wondering whether it is possible to change the angle of all axis in a scatterplot3d graph. I know that there is one
| > parameter <angle> but I was wondering whether it is possible to control the angle of all different axis individually (eg by
using
| > <anglex><angley><anglez>).
| > In addition I was wondering whether there is a way to change the angle of a plot after all the data has been saved. E.G I want
to
| > see the graph from many different angles without having to feed all the points into it repeatedly.
| > Any help would be greatly appreciated.
|
| Nothing of your request is possible. If you want to rotate a plot
| (interactively), I'd suggest to look at
|
| 1) cloud() in package lattice, or
|
| 2) the package RGL (Windows only, available at Duncan Murdoch's
| homepage), or
|
| 3) the data visualiziation system "ggobi", available at
| http://www.ggobi.org/ (R interfaces are also available)
|
|
| Uwe Ligges
| -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
| r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
| Send "info", "help", or "[un]subscribe"
| (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
| _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
|

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Rishabh Gupta wrote:
Right.
No, that's not possible.

Uwe
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
No Problem. The system is scripted anyway so I guess doing it the other way is not too much of a problem. Many thanks for your help.

Rishabh
----- Original Message -----
From: "Uwe Ligges" <ligges at statistik.uni-dortmund.de>
To: "Rishabh Gupta" <rg117 at ohm.york.ac.uk>
Cc: <r-help at stat.math.ethz.ch>
Sent: Thursday, July 11, 2002 8:20 AM
Subject: Re: [R] changing angle in scatterplot3d
| Rishabh Gupta wrote:
| >
| > Hi,
| >     Thanks for your reply.
| >     I had a look at both the cloud() function and the ggobi system. For my work what I need to do is save copies of a 3d plot
from
| > many different files. So essential the procedure would be:
| >         1.    set and configure the data and create the plot
| >         2.    change the angle by X ammount
| >         3.    save to file
| >         4.    repeat 2. and 3.
| > All this has to run in a script so it should be automatable.
|
| Right.
|
|
| > Ggobi is interactive but as I understand it, it is not automatable. The
| > cloud() function would be ideal but unfortunately it is not yet fully implemented.
| > I think I can use the angle function within scatterplot3d. I was just wondering one thing. Is it possible to change the angle of
a
| > 3d plot after all the data has been set and all the other configuration information has been set?
|
| No, that's not possible.
|
| Uwe
| -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
| r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
| Send "info", "help", or "[un]subscribe"
| (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
| _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
|

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
11 days later
#
Hello,

Is there an easy way to remove a few columns from a data frame by 
indicating the column names? I am thinking of an operator like the "-" to 
remove the columns when referenced by column number, and I don't want to 
use the %in% operator together with the names() function.

Thanks
Daniel Mastropietro

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Mon, 22 Jul 2002, Daniel Mastropietro wrote:
%Hello,
%
%Is there an easy way to remove a few columns from a data frame by 
%indicating the column names? I am thinking of an operator like the "-" to 

something like
yourDataFrame$columnName<-NULL

	JN

%remove the columns when referenced by column number, and I don't want to 
%use the %in% operator together with the names() function.
%
%Thanks
%Daniel Mastropietro
%
%-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
%r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
%Send "info", "help", or "[un]subscribe"
%(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
%_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
%

***********************************************************************
Jens Nieschulze

Institute for Forest Biometrics &	Phone: ++49-551-39-12107
Applied Computer Science		Fax  : ++49-551-39-3465
Buesgenweg 4
37077 Goettingen		E-mail: jniesch at uni-forst.gwdg.de
GERMANY				http://www.uni-forst.gwdg.de/~jniesch

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
to
to
Daniel,

Look at ?subset using the "select = " argument.

HTH,

Marc


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Hello,

I have the following situation:

Suppose I have the string "test(x)", and I want to substitute x by y. I 
know that this can be done by using the following commands:

string <- parse( text="test(x)" )[[1]];
do.call("substitute" , list(string, list(x=as.name("y")));

Now, suppose that the variable name that plays the role of argument in 
"test(x)" may change. That is the string could be "test(z)", "test(w)", 
etc. I have the variable name stored in another variable, say 'varname'. 
That is, I have:

varname <- "w";	# the value of varname is defined by the user and may change.
string <- parse( text=paste("test(" , varname ,")") )[[1]];

How can I have the *value* of 'varname' in 'string' be substituted by 'y'?

Thanks
Daniel Mastropietro

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Mon, 22 Jul 2002, Daniel Mastropietro wrote:

            
Define a variable for the second argument of substitute:
  replacement<-list(as.name("y"))
  names(replacement)<-varname
  do.call("substitute",list(string,replacement))

Incidentally, I wouldn't recommend the name `string' for something that
is actually an expression, especially in a help question...


	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
The answer to your question is probably "No".

You could do

x[,is.na(match(names(x), c("unwanted column names"))),drop=F]

or

x[ ,-match(names(x), c("unwanted column names"), nomatch=0),drop=F]

While

x[,!(names(x) %in% c("unwanted column names")),drop=F]

is a few characters shorter, but you said you don't want to do that... (why 
is that?)

-- Tony Plate
At 02:13 PM 7/22/2002 -0300, you wrote:
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._