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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 ),
19 matches
Mail list logo