Re: [R] pie3D.labels

2021-03-30 Thread Jim Lemon
Hi Collins, pie3D draws a pseudo-3D pie and then places 2D labels around it. If you put the labels on top of the pie, it is not going to look right. The labels will be displayed with an orthogonal viewing angle, while the pie will be tilted. pie3D is one of those functions that I wrote for those wh

[R] Problem with updating terms in the multinom function

2021-03-30 Thread Chao Liu
Dear R-help, I am trying to add1() all interaction terms on top of a multinomial baseline model using multinom() but it shows the error "trying + x1:x2 Error in if (trace) { : argument is not interpretable as logical Called from: nnet.default(X, Y, w, mask = mask, size = 0, skip = TRUE, softmax =

Re: [R] "for" loop does not work with my plot_ly command

2021-03-30 Thread Bill Dunlap
Printing the return value of plot_ly and friends works for me in the following examples: # make base plot p0 <- plotly::plot_ly(na.omit(palmerpenguins::penguins), x = ~bill_length_mm, y = ~body_mass_g) # now add things to base plot for(vrbl in list(~species, ~island, ~year)) { tmp <- plotly::add

Re: [R] "for" loop does not work with my plot_ly command

2021-03-30 Thread Mika Hamari
Hi! That is familiar: loop goes on, but nothing visual happens. Normally when I don't get output of the loop, I put the output-line inside the function print(), and it works. But in this case it probably doesn't help. I am sure that someone here can help you, Rachida. Mika Lähetetty Samsung

Re: [R] Word cloud based on a specific site

2021-03-30 Thread Marcelo Laia
Hi Jim and Bert! Thank you so much! I already did the search by "word cloud r". However, it return a lot of resources tell me how I make a word cloud from a dataset. For example [1] is a best resources and I understand how I made a word cloud from a csv file. However, I am interested in another a

Re: [R] Colorizing different individuals with fviz

2021-03-30 Thread Mahmood Naderan-Tahan
Thanks Jim, It is now working. Regards, Mahmood From: Jim Lemon Sent: Tuesday, March 30, 2021 4:28:50 AM To: Mahmood Naderan-Tahan Subject: Re: [R] Colorizing different individuals with fviz Hi Mahmood, After scanning the replies and finding the "factoextra" a

Re: [R] "for" loop does not work with my plot_ly command

2021-03-30 Thread Rachida El Ouaraini
Hi Jim, Many thanks for your answer ! I tried what you suggested but it doesn't work. I've got NO error message, but nothing happens at the end : no graphs ! It seems to me that the command "plot_ly" and the "for" loop DO NOT coexist, that's why I ask you how to overcome this problem? Thank you aga

Re: [R] "for" loop does not work with my plot_ly command

2021-03-30 Thread Rachida El Ouaraini
Hi Mika, and thank you very much for your answer. When I add the "for" loop to the code that produces before the graph I want, it does nothing : NO graph and NO error message. It seems to me that the command plot_ly and the for loop DO NOT coexist. Rachida On Mon, Mar 29, 2021 at 7:44 PM Mika Ham

Re: [R] Spie charts

2021-03-30 Thread Jim Lemon
Hi Ferri, Just for fun, I plotted six countries with the current COVID deaths, per million against both population and median income. Even I was surprised. library(plotrix) country<-c("USA","Brazil","India","UK","Czechia","Mexico") COVIDdeath<-c(1694,1471,117,1858,2445,1553) Countrypop<-c(332,214,