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:> > 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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:>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 >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._