Re: [R] Manipulating text and linear regression in openair scatterPlot function

2015-06-20 Thread Jim Lemon
Hi Amy, The line at the top of the plot is formatted and displayed somewhere In the 700+ lines of the scatterPlot code. I was unable to find where that is, so the best option is to email the maintainer of the package: david.cars...@york.ac.uk Jim On Sun, Jun 21, 2015 at 11:27 AM, David Winsemiu

Re: [R] data.table package problem

2015-06-20 Thread Eddie Ho
Hi David, Thanks a lot, you saved my day. I installed R 3.2.0 on 7th June and then installed package data.table on 20th June. When I installed data.table, it downloaded "data.table" built under R 3.2.1. After I upgraded R to 3.2.1, data.table is working now. Regards, Eddie On Sun, Jun 21, 2015

Re: [R] sorting a dataframe

2015-06-20 Thread Bogdan Tanasa
thank you all, it is working fine. happy weekend ;) ! On Sat, Jun 20, 2015 at 6:15 PM, David Winsemius wrote: > > On Jun 20, 2015, at 5:18 PM, Bogdan Tanasa wrote: > > > Dear all, > > > > I am looking for a suggestion please regarding sorting a dataframe with > > alphanumerical components : > >

Re: [R] Manipulating text and linear regression in openair scatterPlot function

2015-06-20 Thread David Winsemius
On Jun 20, 2015, at 3:04 PM, amyv wrote: > Hi all, > > I'm working with the openair package scatterPlot function and am trying to > change/add/remove the line text of the linear regression, e.g. change the > font size, split it into 2 rows, just show the equation OR the R^2 value or > even remov

Re: [R] sorting a dataframe

2015-06-20 Thread David Winsemius
On Jun 20, 2015, at 5:18 PM, Bogdan Tanasa wrote: > Dear all, > > I am looking for a suggestion please regarding sorting a dataframe with > alphanumerical components : > > let's assume we have : > > A = c("A1","A10","A11","A2") > B = c(1,2,3,4) > > C = data.frame(A,B) > > how could I sort C

[R] sorting a dataframe

2015-06-20 Thread Bogdan Tanasa
Dear all, I am looking for a suggestion please regarding sorting a dataframe with alphanumerical components : let's assume we have : A = c("A1","A10","A11","A2") B = c(1,2,3,4) C = data.frame(A,B) how could I sort C data.frame in such a way that we have at the end : C$A in the order : "A1", "

[R] Manipulating text and linear regression in openair scatterPlot function

2015-06-20 Thread amyv
Hi all, I'm working with the openair package scatterPlot function and am trying to change/add/remove the line text of the linear regression, e.g. change the font size, split it into 2 rows, just show the equation OR the R^2 value or even remove both but leave the linear regression line. Simple ex

Re: [R] data.table package problem

2015-06-20 Thread David Winsemius
On Jun 20, 2015, at 5:00 AM, Eddie Ho wrote: > Hi all, > I am new to R and currently learning through a book. Everything works > until I try package "data.table". I am using R3.2.1 and RStudio 0.99.441. > Package "data.table" is version 1.9.4. > >> require(data.table) > Loading required package

[R] data.table package problem

2015-06-20 Thread Eddie Ho
Hi all, I am new to R and currently learning through a book. Everything works until I try package "data.table". I am using R3.2.1 and RStudio 0.99.441. Package "data.table" is version 1.9.4. > require(data.table) Loading required package: data.table data.table 1.9.4 For help type: ?data.table *