Re: [R] Add GAM fit on the plot ?

2020-04-22 Thread Rui Barradas
Hello, Inline. Às 23:29 de 22/04/20, varin sacha via R-help escreveu: Dear R-experts, Here below the reproducible example. I can not add the "green" gam curve on the plot. The last line of my R code gives me problem. There is a message error that I don't understand. Many thanks for your

Re: [R] Add GAM fit on the plot ?

2020-04-22 Thread David Winsemius
On 4/22/20 3:29 PM, varin sacha via R-help wrote: Dear R-experts, Here below the reproducible example. I can not add the "green" gam curve on the plot. The last line of my R code gives me problem. There is a message error that I don't understand. Many thanks for your precious help.

[R] Add GAM fit on the plot ?

2020-04-22 Thread varin sacha via R-help
Dear R-experts, Here below the reproducible example. I can not add the "green" gam curve on the plot. The last line of my R code gives me problem. There is a message error that I don't understand. Many thanks for your precious help. ### a <-

Re: [R] Can I use R for comertial projects for free?

2020-04-22 Thread Richard O'Keefe
I cannot tell from your message whether (a) your project is a statistical consulting one and you want to use R to do the calculations and graphics for it, but will not give your client R itself,or (b) your project will deliver software to the client, and that software will include a

Re: [R] Can I use R for comertial projects for free?

2020-04-22 Thread Abby Spurdle
It is legal (subject to licensing conditions), as mentioned by Duncan and Jeff. However, I would like to add two comments: (1) If you use R in publications/reports, I strongly recommend you cite R. (2) If you benefit from R, I strongly recommend contributing to R, in some form. This could

Re: [R] [EXTERNAL] Re: overlaying graphs in xYplot (Hmisc)

2020-04-22 Thread Bert Gunter
In lattice, e.g. xyplot, one simply uses panel functions to "overlay" various constructs (point plots, smooth curves, text, etc.). If that is relevant and you do not know about it, then you have homework to do. ?xyplot or Deepayan's book or tutorials would be places to start for that. Otherwise,

Re: [R] [EXTERNAL] Re: overlaying graphs in xYplot (Hmisc)

2020-04-22 Thread Cade, Brian S via R-help
All the xYplot() functions using Cbind() or cbind() does just exactly what I want (Cbind provides aplot of 3 summary statistics and cbind provides the raw values). I just cannot find anyway to overlay them. Brian Brian S. Cade, PhD U. S. Geological Survey Fort Collins Science Center 2150

Re: [R] overlaying graphs in xYplot (Hmisc)

2020-04-22 Thread David Winsemius
On 4/22/20 7:31 AM, Cade, Brian S via R-help wrote: Hi All. I am trying to construct a graph using the xYplot() function in Hmisc package (thank you Frank Harrell) taking advantage of the Cbind() argument for plotting the median, 10th, and 90th quantiles and also the cbind() argument for

Re: [R] overlaying graphs in xYplot (Hmisc)

2020-04-22 Thread Bert Gunter
Reproducible example with data via dput? Code that you used that 'didn't work'? Error messages or output and why it was not satisfactory? Following the posting guide by providing such information is more likely to generate useful answers and save both you and those who try to help a lot of wasted

[R] overlaying graphs in xYplot (Hmisc)

2020-04-22 Thread Cade, Brian S via R-help
Hi All. I am trying to construct a graph using the xYplot() function in Hmisc package (thank you Frank Harrell) taking advantage of the Cbind() argument for plotting the median, 10th, and 90th quantiles and also the cbind() argument for individual data values. I know how to do both of these

[R] ggraph and changing colors in geom_node_arc_bar

2020-04-22 Thread Monica Palaseanu-Lovejoy
Hi, I am playing with the ggraph that is amazing. But i don't quite understand some of the options it has. For example: gr <- graph_from_data_frame(flare$edges, vertices = flare$vertices) l <- ggraph(gr, layout = 'partition', circular = TRUE) l + geom_node_arc_bar(aes(fill = depth)) +

Re: [R] Data frames intersections

2020-04-22 Thread Jim Lemon
Hi Julie, Your task is a bit obscure and I don't have the function "st_intersects", but I'll suggest this: br_list<-list() # your commands would have only run once for (i in 1:nrow(arrets_buffer)) { br_list[[i]]<- st_intersects(x = batiments, arrets_buffer[i,], sparse = FALSE) } You should get

Re: [R] Changes to stats::glm function between R versions 3.4.0 and 3.5.1

2020-04-22 Thread Purver, Mark
Dear Martin, Thanks so much for this response. I have attempted a reproducible example below. The 'real' issue involves a much larger data set, but the very small example below produces very small differences in the standard errors between different R versions, which may have the same root

Re: [R] Help to download data from multiple URLs with API key

2020-04-22 Thread Bhaskar Mitra
Hi Eric, Thanks for your help. This is really helpful. I have also adjusted the code to ensure filename has the base url and suffix as strings. thanks, bhaskar On Tue, Apr 21, 2020 at 12:16 AM Eric Berger wrote: > Hi Bhaskar, > Why not just create a function that does the repetitive work,

[R] Data frames intersections

2020-04-22 Thread Julie Poitevin
Hello, > I want to build a map (bus accessibility map) and for that I need to identify > some polygons intersections. To do that I have 2 data.frame: batiments (that > gives buildings in a city) and arrets_buffer (that gives bus stops (points) > with a buffer around the point). > > I want to

Re: [R] ggplot2 error bars and convex hulls

2020-04-22 Thread Ivan Calandra
Thanks Rui for these 2 possibilities; I'll have a look. Any one with pointers for the error bars issue? Ivan -- Dr. Ivan Calandra TraCEr, laboratory for Traceology and Controlled Experiments MONREPOS Archaeological Research Centre and Museum for Human Behavioural Evolution Schloss Monrepos