Re: [R] Question about addressing a data frame

2019-04-25 Thread Nitu, Laurentiu
Thank you very much for your answer. Yes, meanwhile I found out … Plus, that index that which() is returning applied on the matrix is calculated as: matrix[rowIndices + nrow(matrix) * (colIndices - 1)] thanks again for your help From: William Dunlap Sent: Thursday, April 25, 2019 10:03 AM

Re: [R] Surface plots....

2019-04-25 Thread Abs Spurdle
> Does anyone have a recommendation for the best package/function for doing > surface plots? > What I am looking for is one with a lot of functionality like easily rotate > the plot and so on. There is persp() and the rgl package, as Duncan has already mentioned. However (I'm probably biased h

Re: [R] Surface plots....

2019-04-25 Thread Bernard Comcast
That works nicely for what I need Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Apr 25, 2019, at 3:21 PM, Duncan Murdoch wrote: > >> On 25/04/2019 2:24 p.m., Bernard McGarvey wrote: >> If I have a set of data (x,y,z) and I want to plot z(x,y) as a surface plot. >> Wha

Re: [R] Doubt regarding the autoplot function in ggfortify library

2019-04-25 Thread Jeff Newmiller
True, but reading the supplied help is appropriate before contacting the maintainer. Specifically, help("ggfortify") and click the link to the index and find the autoplot method in the list and follow that link. Or you can read the help for the "pam" function and discover that the class of

Re: [R] Surface plots....

2019-04-25 Thread Duncan Murdoch
On 25/04/2019 2:24 p.m., Bernard McGarvey wrote: If I have a set of data (x,y,z) and I want to plot z(x,y) as a surface plot. What I am looking for is one with a lot of functionality like easily rotate the plot and so on. If x and y are on a grid, there are lots of choices. If they are a set

Re: [R] Surface plots....

2019-04-25 Thread Bernard McGarvey
If I have a set of data (x,y,z) and I want to plot z(x,y) as a surface plot. What I am looking for is one with a lot of functionality like easily rotate the plot and so on. Thanks Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). > On

Re: [R] Surface plots....

2019-04-25 Thread Duncan Murdoch
On 25/04/2019 1:47 p.m., Bernard Comcast wrote: Does anyone have a recommendation for the best package/function for doing surface plots? You've got a pretty wide choice: graphics::persp, several functions in the rgl, plotly, plot3D packages, etc. You'll need to give a bit more information

Re: [R] Surface plots....

2019-04-25 Thread Bert Gunter
Depends on what you want to do -- context matters. More details would probably enable better answers. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Apr 2

[R] Surface plots....

2019-04-25 Thread Bernard Comcast
Does anyone have a recommendation for the best package/function for doing surface plots? Bernard Sent from my iPhone so please excuse the spelling!" __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listin

Re: [R] Doubt regarding the autoplot function in ggfortify library

2019-04-25 Thread Bert Gunter
As I believe the posting guide notes, you may do better addressing questions about specialized packages to the package maintainers, who often do not monitor this list. Cheers, Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus

Re: [R] Question about addressing a data frame

2019-04-25 Thread William Dunlap via R-help
is.na(DF) is a matrix for a data.frame DF. The semantics of '[" are different for matrices and data.frame and that can cause confusion > DF <- data.frame(X=c(101,NA,NA), Y=c("one","two",NA), row.names=c("i","ii","iii")) > is.na(DF) # returns a matrix when given a data.frame X Y i FA

Re: [R] .Call using multiple cores on linux after R 3.3.3

2019-04-25 Thread Youyi Fong
Thanks, Jeff! You are absolutely correct. We have OPENBLAS installed in our environment that causes this. One way to "fix" it is: library(RhpcBLASctl) blas_get_num_procs() blas_set_num_threads(1) stopifnot(blas_get_num_procs()==1) On Sat, Apr 20, 2019 at 9:06 AM Jeff Newmiller wrote: > My gu

[R] Doubt regarding the autoplot function in ggfortify library

2019-04-25 Thread manju moorthy
Iam using autoplot function from the ggfortify library. I saw that autoplot gives the 1st two principal components. I am using autoplot to generate 1st two principal components on a clustered object. The usage is like : autoplot(pam(my_data[1:256], 3), label = TRUE, label.size = 4, frame = TRUE, f

[R] Question about addressing a data frame

2019-04-25 Thread Nitu, Laurentiu
Hello, I have this data frame [algae] in the package DMwR. I thought I understand how to refer an element but I cannot explain... is.na(algae) is giving us the a logical vector with TRUE being the na's. which(is.na(algae)) gives the positions on the elements in the data frame where is.na retur

[R] [R-pkgs] randomForestSRC 2.9.0 is now available

2019-04-25 Thread Udaya B. Kogalur
Dear useRs: It's been some time since we last sent out an announcement, so this one will cover more than just the last update. The latest release of randomForestSRC is now available on CRAN at: https://CRAN.R-project.org/package=randomForestSRC The GitHub repository, through which we prefer to

[R] [R-pkgs] new CRAN package : modelplotr

2019-04-25 Thread Jurriaan Nagelkerke
Hi there! We would like to share the news that our package *modelplotr *has recently been added to CRAN with your audience. Here's a some text for the introduction: - *Title:* *modelplotr v1.0 now on CRAN: Visualize the Business Value of your Predictive Models * *Visual:* ht

Re: [R] xtabs ignores l.h.s. rows with NA in just one column - bug or facility?

2019-04-25 Thread Bendix Carstensen
Thanks for that, but the documentation also says that teh default behaviour is to use na.action=na.pass, which normally just ignores missing values, whereas xtabs seems to ignore the entire row... /Bendix From: David L Carlson Sent: 25 April 2019 15:55 T

Re: [R] xtabs ignores l.h.s. rows with NA in just one column - bug or facility?

2019-04-25 Thread David L Carlson
The documentation describes how to control the behavior of missing values: > xtabs( cbind(xx,yy) ~ ff, addNA=TRUE) ff xx yy a 17 b 55 66 But of course, now you do not get 26 in the (a, yy) cell because 26 + NA = NA. David L Carlson Department

[R] xtabs ignores l.h.s. rows with NA in just one column - bug or facility?

2019-04-25 Thread Bendix Carstensen
Here is an example showing that xtabs and cbind are not commutative, which at least I thought reading the help page for xtabs. print( sessionInfo(), l=F ) xx <- c( 6,11,38,17) yy <- c(NA,26,18,48) ff <- c('a','a','b','b') data.frame( xx, yy, ff ) xtabs( cbind(xx,yy) ~ ff ) cbind( xtabs(xx ~ ff ),