[R] Plotting in R

2019-07-06 Thread Steven Yen
I have a data frame containing two variables: year and rate (shown below). Which function can I use to plot rate (y-axis) against year (x-axis)? There will be more columns of rate later on. Thank you. year rate 1 1993 0.608 2 1994 0.622 3 1996 0.623 4 1998 0.647 5 2000 0.646 6 2002 0.625 7 2004

[R] Adding column values based on a condition

2019-07-06 Thread Alessandro Puglisi
Hi all! I have a tibble regarding a series of comments on a forum; the tibble has a certain number of variables, and in particular: id: comment id; author_id: author id; parent_id: if the message is a reply, the original comment id I want to add another column, in which I put the author id of

Re: [R] [FORGED] Re: Wolfram Engine for Developers

2019-07-06 Thread Rolf Turner
On 7/07/19 11:59 AM, Jeff Newmiller wrote: Who let the editor in here? :-) Sorry! Can't help it! :-) Anyway, I stand corrected. Sad to say, you are far from being alone in your breach of this particular rule of usage. cheers, Rolf -- Honorary Research Fellow Department of

Re: [R] [FORGED] Re: Wolfram Engine for Developers

2019-07-06 Thread Jeff Newmiller
Who let the editor in here? :-) Anyway, I stand corrected. On July 6, 2019 3:37:52 PM PDT, Rolf Turner wrote: > >On 6/07/19 11:15 PM, Jeff Newmiller wrote: > > > >> I have tried both Mathematica and Wolfram Alpha at times and found >neither >> of them so compelling that I felt the slightest bit

Re: [R] [FORGED] Re: Wolfram Engine for Developers

2019-07-06 Thread Rolf Turner
On 6/07/19 11:15 PM, Jeff Newmiller wrote: I have tried both Mathematica and Wolfram Alpha at times and found neither of them so compelling that I felt the slightest bit jealous of people who have licensed access to Wolfram's tools and services. You mean "... *envious* of people ...

Re: [R] Plotting in R

2019-07-06 Thread John Kane
Please do not post in html. You could use ggplot to do this. But you need to do a bit of work yourself. On Sat, 6 Jul 2019 at 10:51, wrote: > > Hello, > > Please don't post inHTML, the data is unreadable. > > As for the question, it is very basic. try any of > > > plot(rate ~ year, data = df)

Re: [R] Plotting in R

2019-07-06 Thread ruipbarradas
Hello, Please don't post inHTML, the data is unreadable. As for the question, it is very basic. try any of plot(rate ~ year, data = df)# df is your dataframe plot(df$year, df$rate) Then read ?plot and ?par to see how to customize the graph, by changing the plot type, how to add

Re: [R] Plotting in R

2019-07-06 Thread Bert Gunter
Oh come on! Please do your homework and spend time with some basic R tutorials, one of which ships with R, although there are tons more good ones on the web. And FYI, there are *several* different plotting systems that one can access using various R packages. Probably the most basic -- but still

[R] Plotting in R

2019-07-06 Thread Steven Yen
I have a data frame containing two variables: year and rate (shown below). Which function can I use to plot rate (y-axis) against year (x-axis)? There will be more columns of rate later on. Thank you. year rate 1 1993 0.608 2 1994 0.622 3 1996 0.623 4 1998 0.647 5 2000 0.646 6 2002 0.625 7 2004

Re: [R] Wolfram Engine for Developers

2019-07-06 Thread J C Nash
Nobody has mentioned Julia. Last year Changcheng Li did a Google Summer of Code project to add automatic differentiation capability to R. autodiffR package was result, but it is still "beta". The main awkwardness, as I would guess for Wolfram and other wrappings, is the non-R side having

[R-es] comparar si dos matrices tienen las mimas columnas pero en diferente orden

2019-07-06 Thread Fernando Sanchez via R-help-es
Hola a todos, Estoy buscando un método elegante (mas allá de bucles FOR) que me permita saber si dos matrices nxn tienen las mismas columnas pero en diferente orden. Por ejemplo, creo las dos matrices siguientes:

Re: [R] Wolfram Engine for Developers

2019-07-06 Thread Jeff Newmiller
I don't get it. I have been quite content to use Maxima when I want symbolic manipulation for many years. I have not felt this pressure you imply that R should do everything, and I have tried both Mathematica and Wolfram Alpha at times and found neither of them so compelling that I felt the

Re: [R] How to set scale of color scatterplot points relative to a third variable?

2019-07-06 Thread Jim Lemon
Hi Sarah, The size_n_color function in the plotrix package does something like this. To get the colors that you want using "color.scale" in the same package, look at the help page for that function. The values in A1.matrix[,3] probably don't range from 0 to 2, so getting exactly what you want can

Re: [R] Wolfram Engine for Developers

2019-07-06 Thread Anarcocapitalista Socialdemocrata
I think the Wolfram license is for non-profit, i.e. users and NGOs. Companies making a profit should buy a license. IMHO, the strategy is to increase Wolfram user base. For R and RStudio, it would make sense to add Wolfram to become a comprehensive solution to do science. R is of course mostly