Re: [R] [External] latticeExtra

2023-06-05 Thread Thomas Subia via R-help
Colleagues, Thanks for the help! Root cause of the problem was not to define z and x as factors!Now I know better. All the best, Thomas Subia On Monday, June 5, 2023 at 08:45:39 PM PDT, Richard M. Heiberger wrote: This works. > d$zz <- factor(d$z, levels=c("low","med","high")) >

Re: [R] [External] latticeExtra

2023-06-05 Thread Richard M. Heiberger
This works. > d$zz <- factor(d$z, levels=c("low","med","high")) > d$xx <- as.factor(d$x) > cloud(y~xx+zz, d, panel.3d.cloud=panel.3dbars, col.facet='grey', + xbase=0.4, ybase=0.4, scales=list(arrows=FALSE, col=1), + par.settings = list(axis.line = list(col = "transparent"))) > the

[R] latticeExtra

2023-06-05 Thread Thomas Subia via R-help
Colleagues, I am trying to create a 3D barplot using the following script d <- read.table(text=' x   y z t1   5   high t1   2   low t1   4   med t2   8   high t2   1   low t2   3   med t3  50   high t3  12   med t3  35   low', header=TRUE) library(latticeExtra) cloud(y~x+z, d,

Re: [R] Adding a numeric class to a data.frame

2023-06-05 Thread Jeff Reichman
Avi I'm not sure why but neither the "cbind" nor "with" functions seemed to work with the numeric object so I ended up converting the object to a numeric vector prob <- as.numeric(pred_probability) then used the cbind function df <- cbind(train, prob); which seemed to work I do

Re: [R] Adding a numeric class to a data.frame

2023-06-05 Thread avi.e.gross
Jeff, I wish I could give you an answer to a very specific question. You have lots of numbers in a vector representing whatever "probabilities" mean something to you. There are currently no names associated with them. And you want to make some kind of graph using ggplot. So, to be quite clear,

Re: [R] error in arfima...

2023-06-05 Thread akshay kulkarni
Dear Martin, Sad that the bug is beyond your ken... Fortunately, the error happens only rarely...The length of LYGH was 719 and there were only two such errors..I will just replace them with NA and make do. By the by, what if I send LYGH as an attachment to your actual mail

Re: [R] Adding a numeric class to a data.frame

2023-06-05 Thread Jeff Reichman
Avi But I don't have a column header to call. Do I simply use column position > pred_probability 1 2 3 5 8 0.001156612672 0.000926702837 0.008162332353 0.001544764162 0.000919503109 .. > str(pred_probability ) Named num

Re: [R] error in arfima...

2023-06-05 Thread Martin Maechler
> Dear Martin, > REgrets to reply this late > I am staring at a conundrum never before encountered in my experience with R: > LYGH[[201]] > [1] 45.40 3.25 6.50 2.15 > > arfima(LYGH[[201]]) > Error in .fdcov(x, fdf$d, h, nar = nar, nma = nma, hess = hess, fdf.work =