Re: [R] Information

2018-02-08 Thread PIKAL Petr
Hi
Copy your messages to r help, others may give you better advice.
Strange, I do not get such error. Beside, from
m = t(matrix(data = detrend, nrow = 30))
I expect matrix result, but your str shows that m is list.

> m<-list(a=rep(NA, 20), b=rep(1,20))
> colMeans(m, na.rm=T)
Error in colMeans(m, na.rm = T) :
  'x' must be an array of at least two dimensions
So as colMeans help page clearly states, it expects as input

an array of two or more dimensions, containing numeric, complex, integer or 
logical values, or a numeric data frame. For .colSums() etc, a numeric, integer 
or logical matrix (or vector of length m * n).

I fish in murky waters. If you fail to provide enogh information you cannot 
expect reasonable answer.

My guess is that your original data are not what you think they are.
Cheers
Petr

From: Kabouch Nourdine [mailto:nourdinekabo...@yahoo.com]
Sent: Thursday, February 8, 2018 3:02 PM
To: PIKAL Petr 
Subject: Re: RE: [R] Information

Hi
str(detrend)
'data.frame':   1095 obs. of  1 variable:
 $ Mean: num  NA NA NA NA NA NA NA NA NA NA ...

str(m)
List of 365
 $ : num [1:1095] NA NA NA NA NA NA NA NA NA NA ...
 $ : num [1:1095] NA NA NA NA NA NA NA NA NA NA ...

$ : num [1:1095] NA NA NA NA NA NA NA NA NA NA ...
 $ : num [1:1095] NA NA NA NA NA NA NA NA NA NA ...
  [list output truncated]
 - attr(*, "dim")= int [1:2] 1 365


On Thursday, February 8, 2018, 11:52:21 AM GMT+1, PIKAL Petr 
> wrote:


Hi

The errors are self explanatory. Function needs to be fed by numeric values.

What is the result of

str(m) or str(detrend)
Cheers
Petr

> -Original Message-
> From: R-help 
> [mailto:r-help-boun...@r-project.org] On 
> Behalf Of Kabouch
> Nourdine via R-help
> Sent: Thursday, February 8, 2018 11:01 AM
> To: r-help@r-project.org
> Subject: [R] Information
>
> I have a time series of 1095 data corresponding to a daily data of three 
> years.
> I want to know how to use ma(timeserie, order=??, centre=??) to detect the
> trend:
> which order is suitable and what is the difference between centre= true or
> false.
>
> How to avoid these errors:
> 1-Error in timeserie - trend :
>  argument non numérique pour un opérateur binaire="non-numeric argument
> for a binary operator"
>
> timeserie:
>Mean
> 13874.000
> 23869.000
> 33885.000
> ..
> ..
> ..
> trend:
>  [,1]
>[1,]  NA
>[2,]  NA
>[3,]  NA
>  ..
>  ..
>  ..
> 2-m = t(matrix(data = detrend, nrow = 30))
> seasonal = colMeans(m, na.rm = T)
> Error in colMeans(m, na.rm = T) : 'x' doit être numérique=" 'x' must be 
> numeric"

>
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To 
> UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny 
pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či 
zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a 
to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; 
Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce 
s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným 
dosažením shody na všech jejích náležitostech.
- odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost 
žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně 
pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu případně 
osobě, kterou adresát zastupuje, předloženy nebo jejich existence je adresátovi 
či osobě jím zastoupené známá.

This e-mail and any documents attached to it may be confidential and are 
intended only for its intended recipients.
If you received this e-mail by mistake, please immediately inform its sender. 
Delete the contents of this e-mail with all attachments and its copies from 
your system.
If you are not the intended recipient of this e-mail, you are not authorized 

Re: [R-es] Ayuda OVER_QUERY_LIMIT

2018-02-08 Thread David Contreras
Muchas gracias Javier como siempre por tu ayuda, en este momento el tema de
presupuesto es algo complicado. Pero si tienes toda la razón con los
comentarios.










*David Contreras*

Estadístico

Móvil 3124345188.  <%2B57%20%281%29%204841410%20Ext.%20257>
davidcontrera...@gmail.com 

El 7 de febrero de 2018, 21:58, Javier Marcuzzi <
javier.ruben.marcu...@gmail.com> escribió:

> Estimado David Contreras
>
> Hay dos formas, si tienes el dinero o si no tienes el dinero.
>
> Si no tienes el dinero, no te preocupes, aparentemente la API le deja leer
> algunos registros diarios, entonces todos los días puedes leer algunos y
> guardarlos.
>
> Si tienes el dinero te puedo comentar que es lindo que nos abonen por
> nuestro trabajo.
>
> Yo antes intentaba ahorrar todo lo que podía, pero la realidad era que
> gastaba mucho tiempo y no andaba bien, luego comencé a pagar dentro de mis
> posibilidades, y me di cuenta que ahorraba tiempo y mi tiempo también
> cuesta.
>
> Javier Rubén Marcuzzi
>
> El 7 de febrero de 2018, 17:36, David Contreras <
> davidcontrera...@gmail.com> escribió:
>
>> Buena tarde a todos,
>>
>> Estos realizando un proceso que requiere asignar coordenadas a un buen
>> número de registros. Estoy usando el paquete ggmap, pero luego de hacer
>> uso
>> de la georeferenciación se genera el error "geocode failed with status
>> OVER_QUERY_LIMIT" debido al límite de registros diarios. A pesar de decir
>> el error que es cada día, ya me está generando error con pocos registros
>> incluso sin completar los 2500 del día.
>> En general la georeferenciación sirve de manera intermitente, es decir a
>> veces sirve y a veces no.
>>
>> Nos gustaría si hay alguna forma de evitar que se genere este error sin
>> tener que pagar dinero por la licencia de API.
>>
>> Gracias.
>>
>>
>>
>>
>> *David Contreras*
>>
>> Estadístico.
>> davidcontrera...@gmail.com 
>>
>> [[alternative HTML version deleted]]
>>
>> ___
>> R-help-es mailing list
>> R-help-es@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-help-es
>>
>
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] plm package

2018-02-08 Thread Edoardo Baldoni
Hi, maybe the function do not automatically understand, as well as you do,
what are the N and T dimensions of your panel data frame. You could try
using the index parameter of the function to specify your id and time
variables.

Edoardo

2018-02-08 15:04 GMT+01:00 PAOLO PILI :

> Hello,
> I got a problem using package plm. When I give the command
>
> "grun.fe<-plm(Y~X1+X2...+Xn, data=data, model="within")"
>
> I got this answer:
>
> "Error: cannot allocate vector of size 289.7 Gb".
>
> The database that I am using is not so big, so I don't understand to what
> it refers to.
> Can you help me, please?
> thank you! have a nice day
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] plm package

2018-02-08 Thread PAOLO PILI
Hello,
I got a problem using package plm. When I give the command

"grun.fe<-plm(Y~X1+X2...+Xn, data=data, model="within")"

I got this answer:

"Error: cannot allocate vector of size 289.7 Gb".

The database that I am using is not so big, so I don't understand to what
it refers to.
Can you help me, please?
thank you! have a nice day

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] plotting the regression coefficients

2018-02-08 Thread greg holly
Hi Bert;

Thanks so much for this. It is much appreciated.

Regards,
Greg

On Thu, Feb 8, 2018 at 3:29 PM, Bert Gunter  wrote:

> Fwiw, encoding magnitude in color is generally a bad idea. Using
> area(*not* radius) is also not great, but maybe it will work for you.
>
> See here for some explanation: https://www.amazon.com/Visual-Display-
> Quantitative-Information/dp/0961392142/ref=sr_1_1?s=books&
> ie=UTF8=1518092778=1-1=Tufte
>
> Bert
>
>
>
> On Feb 7, 2018 11:13 PM, "greg holly"  wrote:
>
>> Hi Dear all;
>>
>> I would like to create a plot for regression coefficients with each
>> independent variable (x) along the side and the phenotypes (y) across the
>> top (as given below). For each data point, direction and magnitude of
>> effect could be color and significance could be the size of the circle? Is
>> this possible?
>>
>>
>> I would greatly be appreciated your help.
>>
>> Thanks,
>>
>> Greg
>>
>>
>>
>>   y1 y2 y3 y4 y5 y6
>> x1
>> x2
>> x3
>> x4
>> x5
>> x6
>> x7
>> x8
>> x9
>> x10
>> x11
>> x12
>> x13
>> x14
>> x15
>> x16
>> x17
>> .
>> .
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posti
>> ng-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] plotting the regression coefficients

2018-02-08 Thread greg holly
Hi Petr;

Thanks so much. Exactly this is what I need. I will play to change color
and so on but this backbound is perfect to me. I do appreciate your help
and support.

Regards,
Greg

On Thu, Feb 8, 2018 at 1:29 PM, PIKAL Petr  wrote:

> Hi
>
> I copied your values to R, here it is
>
>
>
> > dput(temp)
>
>
>
> temp <- structure(list(par1 = structure(1:4, .Label = c("x1", "x2", "x3",
>
> "x4"), class = "factor"), y1 = c(-0.19, 0.45, -0.09, -0.16),
>
> y2 = c(0.4, -0.75, 0.14, -0.01), y3 = c(-0.06, -8.67, 1.42,
>
> 2.21), y4 = c(0.13, -0.46, 0.06, 0.06)), .Names = c("par1",
>
> "y1", "y2", "y3", "y4"), class = "data.frame", row.names = c(NA,
>
> -4L))
>
>
>
> For plotting it need to be reshaped
>
>
>
> library(reshape2)
>
> library(ggplot2)
>
>
>
> temp <- melt(temp)
>
> p <- ggplot(temp, aes(x=par1, y=variable, size=abs(value),
> colour=factor(sign(value
>
> p+geom_point()
>
>
>
> Is this what you wanted?
>
>
>
> Cheers
>
> Petr
>
> And preferably do not post in HTML, the email content could be scrambled.
>
>
>
> *From:* greg holly [mailto:mak.hho...@gmail.com]
> *Sent:* Thursday, February 8, 2018 9:23 AM
> *To:* PIKAL Petr 
> *Cc:* r-help mailing list 
> *Subject:* Re: [R] plotting the regression coefficients
>
>
>
> Hi Petr;
>
>
>
> Thanks for your reply. It is much appreciated. A small example is given
> below for 4 independent and 4 dependent variables only. The values given
> are regression coefficients.I have looked ggplot documents before writing
> to you. Unfortunately, I could not figure out as my experience in ggplot is
> ignorable
>
>
>
> Regards.
>
> Greg
>
>
>
> y1 y2 y3 y4
>
> x1 -0.19 0.40 -0.06 0.13
>
> x2 0.45 -0.75 -8.67 -0.46
>
> x3 -0.09 0.14 1.42 0.06
>
> x4 -0.16 -0.01 2.21 0.06
>
>
>
>
>
> On Thu, Feb 8, 2018 at 10:19 AM, PIKAL Petr 
> wrote:
>
> Hi
>
> Example, example, example - preferably working.
>
> Wild guess - did you try ggplot?
>
> Cheers
> Petr
>
>
>
> > -Original Message-
> > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of greg
> holly
> > Sent: Thursday, February 8, 2018 8:14 AM
> > To: r-help mailing list 
> > Subject: [R] plotting the regression coefficients
> >
> > Hi Dear all;
> >
> > I would like to create a plot for regression coefficients with each
> independent
> > variable (x) along the side and the phenotypes (y) across the top (as
> given
> > below). For each data point, direction and magnitude of effect could be
> color
> > and significance could be the size of the circle? Is this possible?
> >
> >
> > I would greatly be appreciated your help.
> >
> > Thanks,
> >
> > Greg
> >
> >
> >
> >   y1 y2 y3 y4 y5 y6
> > x1
> > x2
> > x3
> > x4
> > x5
> > x6
> > x7
> > x8
> > x9
> > x10
> > x11
> > x12
> > x13
> > x14
> > x15
> > x16
> > x17
> > .
> > .
> >
>
> > [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> 
> Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou
> určeny pouze jeho adresátům.
> Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě
> neprodleně jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie
> vymažte ze svého systému.
> Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email
> jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
> Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi
> či zpožděním přenosu e-mailu.
>
> V případě, že je tento e-mail součástí obchodního jednání:
> - vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření
> smlouvy, a to z jakéhokoliv důvodu i bez uvedení důvodu.
> - a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout;
> Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany
> příjemce s dodatkem či odchylkou.
> - trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve
> výslovným dosažením shody na všech jejích náležitostech.
> - odesílatel tohoto emailu informuje, že není oprávněn uzavírat za
> společnost žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn
> nebo písemně pověřen a takové pověření nebo plná moc byly adresátovi tohoto
> emailu případně osobě, kterou adresát zastupuje, předloženy nebo jejich
> existence je adresátovi či osobě jím zastoupené známá.
>
> This e-mail and any documents attached to it may be confidential and are
> intended only for its intended recipients.
> If you received this e-mail by mistake, please immediately inform its
> sender. Delete the contents of this e-mail with all attachments and its
> copies from your system.
> If you are not 

Re: [R] plotting the regression coefficients

2018-02-08 Thread Bert Gunter
Fwiw, encoding magnitude in color is generally a bad idea. Using area(*not*
radius) is also not great, but maybe it will work for you.

See here for some explanation:
https://www.amazon.com/Visual-Display-Quantitative-Information/dp/0961392142/ref=sr_1_1?s=books=UTF8=1518092778=1-1=Tufte

Bert



On Feb 7, 2018 11:13 PM, "greg holly"  wrote:

> Hi Dear all;
>
> I would like to create a plot for regression coefficients with each
> independent variable (x) along the side and the phenotypes (y) across the
> top (as given below). For each data point, direction and magnitude of
> effect could be color and significance could be the size of the circle? Is
> this possible?
>
>
> I would greatly be appreciated your help.
>
> Thanks,
>
> Greg
>
>
>
>   y1 y2 y3 y4 y5 y6
> x1
> x2
> x3
> x4
> x5
> x6
> x7
> x8
> x9
> x10
> x11
> x12
> x13
> x14
> x15
> x16
> x17
> .
> .
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Information

2018-02-08 Thread PIKAL Petr
Hi

The errors are self explanatory. Function needs to be fed by numeric values.

What is the result of

str(m) or str(detrend)
Cheers
Petr

> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Kabouch
> Nourdine via R-help
> Sent: Thursday, February 8, 2018 11:01 AM
> To: r-help@r-project.org
> Subject: [R] Information
>
> I have a time series of 1095 data corresponding to a daily data of three 
> years.
> I want to know how to use ma(timeserie, order=??, centre=??) to detect the
> trend:
> which order is suitable and what is the difference between centre= true or
> false.
>
> How to avoid these errors:
> 1-Error in timeserie - trend :
>   argument non numérique pour un opérateur binaire="non-numeric argument
> for a binary operator"
>
> timeserie:
> Mean
> 13874.000
> 23869.000
> 33885.000
> . .
> . .
> . .
> trend:
>  [,1]
>[1,]   NA
>[2,]   NA
>[3,]   NA
>  ..
>  ..
>  ..
> 2-m = t(matrix(data = detrend, nrow = 30))
> seasonal = colMeans(m, na.rm = T)
> Error in colMeans(m, na.rm = T) : 'x' doit être numérique=" 'x' must be 
> numeric"
>
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny 
pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či 
zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a 
to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; 
Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce 
s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným 
dosažením shody na všech jejích náležitostech.
- odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost 
žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně 
pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu případně 
osobě, kterou adresát zastupuje, předloženy nebo jejich existence je adresátovi 
či osobě jím zastoupené známá.

This e-mail and any documents attached to it may be confidential and are 
intended only for its intended recipients.
If you received this e-mail by mistake, please immediately inform its sender. 
Delete the contents of this e-mail with all attachments and its copies from 
your system.
If you are not the intended recipient of this e-mail, you are not authorized to 
use, disseminate, copy or disclose this e-mail in any manner.
The sender of this e-mail shall not be liable for any possible damage caused by 
modifications of the e-mail or by delay with transfer of the email.

In case that this e-mail forms part of business dealings:
- the sender reserves the right to end negotiations about entering into a 
contract in any time, for any reason, and without stating any reasoning.
- if the e-mail contains an offer, the recipient is entitled to immediately 
accept such offer; The sender of this e-mail (offer) excludes any acceptance of 
the offer on the part of the recipient containing any amendment or variation.
- the sender insists on that the respective contract is concluded only upon an 
express mutual agreement on all its aspects.
- the sender of this e-mail informs that he/she is not authorized to enter into 
any contracts on behalf of the company except for cases in which he/she is 
expressly authorized to do so in writing, and such authorization or power of 
attorney is submitted to the recipient or the person represented by the 
recipient, or the existence of such authorization is known to the recipient of 
the person represented by the recipient.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Information

2018-02-08 Thread Kabouch Nourdine via R-help
I have a time series of 1095 data corresponding to a daily data of three years.
I want to know how to use ma(timeserie, order=??, centre=??) to detect the 
trend:
which order is suitable and what is the difference between centre= true or 
false.

How to avoid these errors:
1-Error in timeserie - trend :
  argument non numérique pour un opérateur binaire="non-numeric argument for a 
binary operator"

timeserie:
    Mean
1    3874.000
2    3869.000
3    3885.000
. .
. .
. .
trend:
 [,1]
   [1,]   NA
   [2,]   NA
   [3,]   NA
 .    .
 .    .
 .    .
2-m = t(matrix(data = detrend, nrow = 30))
seasonal = colMeans(m, na.rm = T)
Error in colMeans(m, na.rm = T) : 'x' doit être numérique=" 'x' must be numeric"




[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] plotting the regression coefficients

2018-02-08 Thread PIKAL Petr
Hi
I copied your values to R, here it is

> dput(temp)

temp <- structure(list(par1 = structure(1:4, .Label = c("x1", "x2", "x3",
"x4"), class = "factor"), y1 = c(-0.19, 0.45, -0.09, -0.16),
y2 = c(0.4, -0.75, 0.14, -0.01), y3 = c(-0.06, -8.67, 1.42,
2.21), y4 = c(0.13, -0.46, 0.06, 0.06)), .Names = c("par1",
"y1", "y2", "y3", "y4"), class = "data.frame", row.names = c(NA,
-4L))

For plotting it need to be reshaped

library(reshape2)
library(ggplot2)

temp <- melt(temp)
p <- ggplot(temp, aes(x=par1, y=variable, size=abs(value), 
colour=factor(sign(value
p+geom_point()

Is this what you wanted?

Cheers
Petr
And preferably do not post in HTML, the email content could be scrambled.

From: greg holly [mailto:mak.hho...@gmail.com]
Sent: Thursday, February 8, 2018 9:23 AM
To: PIKAL Petr 
Cc: r-help mailing list 
Subject: Re: [R] plotting the regression coefficients

Hi Petr;

Thanks for your reply. It is much appreciated. A small example is given below 
for 4 independent and 4 dependent variables only. The values given are 
regression coefficients.I have looked ggplot documents before writing to you. 
Unfortunately, I could not figure out as my experience in ggplot is ignorable

Regards.
Greg

y1 y2 y3 y4
x1 -0.19 0.40 -0.06 0.13
x2 0.45 -0.75 -8.67 -0.46
x3 -0.09 0.14 1.42 0.06
x4 -0.16 -0.01 2.21 0.06


On Thu, Feb 8, 2018 at 10:19 AM, PIKAL Petr 
> wrote:
Hi

Example, example, example - preferably working.

Wild guess - did you try ggplot?

Cheers
Petr


> -Original Message-
> From: R-help 
> [mailto:r-help-boun...@r-project.org] On 
> Behalf Of greg holly
> Sent: Thursday, February 8, 2018 8:14 AM
> To: r-help mailing list >
> Subject: [R] plotting the regression coefficients
>
> Hi Dear all;
>
> I would like to create a plot for regression coefficients with each 
> independent
> variable (x) along the side and the phenotypes (y) across the top (as given
> below). For each data point, direction and magnitude of effect could be color
> and significance could be the size of the circle? Is this possible?
>
>
> I would greatly be appreciated your help.
>
> Thanks,
>
> Greg
>
>
>
>   y1 y2 y3 y4 y5 y6
> x1
> x2
> x3
> x4
> x5
> x6
> x7
> x8
> x9
> x10
> x11
> x12
> x13
> x14
> x15
> x16
> x17
> .
> .
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To 
> UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny 
pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či 
zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a 
to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; 
Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce 
s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným 
dosažením shody na všech jejích náležitostech.
- odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost 
žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně 
pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu případně 
osobě, kterou adresát zastupuje, předloženy nebo jejich existence je adresátovi 
či osobě jím zastoupené známá.

This e-mail and any documents attached to it may be confidential and are 
intended only for its intended recipients.
If you received this e-mail by mistake, please immediately inform its sender. 
Delete the contents of this e-mail with all attachments and its copies from 
your system.
If you are not the intended recipient of this e-mail, you are not authorized to 
use, disseminate, copy or disclose this e-mail in any manner.
The sender of this e-mail shall not be liable for any possible damage caused by 
modifications of the e-mail or by delay with transfer of the email.

In case that this e-mail forms part of business dealings:
- the sender reserves the right to end negotiations about entering into a 
contract in any time, for any reason, and without stating any reasoning.
- 

Re: [R-es] Ayuda OVER_QUERY_LIMIT

2018-02-08 Thread miguel.angel.rodriguez.muinos
Hola David.

Acabo de encontrar dónde habla de las limitaciones.
https://developers.google.com/maps/documentation/geocoding/usage-limits?hl=es-419

Fíjate que son 2500 solicitudes gratuitas por día y un máximo de 50 
"solicitudes" por segundo (se cuentan tanto las peticiones del cliente como las 
del servidor).

Un Saludo,
Miguel






De: R-help-es  en nombre de Rodríguez Muíños, 
Miguel Ángel
Enviado: jueves, 8 de febrero de 2018 10:16
Para: davidcontrera...@gmail.com; r-help-es@r-project.org
Asunto: Re: [R-es] Ayuda OVER_QUERY_LIMIT

Hola David.

Además de los registros que puedes procesar diariamente, debes controlar la 
"velocidad" con la que los envías para geocodificar. La API (gratuita) no 
admite envíos masivos de datos. Si pruebas a hacerlo manualmente (uno a uno) 
verás que funciona sin problema.

Yo he tenido algún problema similar y lo he solucionado enlentenciendo el 
proceso
Puedes meterle un contador. Como sólo puedes procesar 2500/dia, tienes margen 
para "separarlos en el tiempo".

Espero que con esto resuelvas el problema.


Un Saludo,
--
Miguel Ángel Rodríguez Muíños
Dirección Xeral de Saúde Pública
Consellería de Sanidade
Xunta de Galicia
http://dxsp.sergas.es







De: R-help-es  en nombre de David Contreras 

Enviado: miércoles, 7 de febrero de 2018 21:36
Para: r-help-es
Asunto: [R-es] Ayuda OVER_QUERY_LIMIT

Buena tarde a todos,

Estos realizando un proceso que requiere asignar coordenadas a un buen
número de registros. Estoy usando el paquete ggmap, pero luego de hacer uso
de la georeferenciación se genera el error "geocode failed with status
OVER_QUERY_LIMIT" debido al límite de registros diarios. A pesar de decir
el error que es cada día, ya me está generando error con pocos registros
incluso sin completar los 2500 del día.
En general la georeferenciación sirve de manera intermitente, es decir a
veces sirve y a veces no.

Nos gustaría si hay alguna forma de evitar que se genere este error sin
tener que pagar dinero por la licencia de API.

Gracias.




*David Contreras*

Estadístico.
davidcontrera...@gmail.com 

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es



Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso-confidencialidad

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es



Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso-confidencialidad

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] Ayuda OVER_QUERY_LIMIT

2018-02-08 Thread miguel.angel.rodriguez.muinos
Hola David.

Además de los registros que puedes procesar diariamente, debes controlar la 
"velocidad" con la que los envías para geocodificar. La API (gratuita) no 
admite envíos masivos de datos. Si pruebas a hacerlo manualmente (uno a uno) 
verás que funciona sin problema.

Yo he tenido algún problema similar y lo he solucionado enlentenciendo el 
proceso
Puedes meterle un contador. Como sólo puedes procesar 2500/dia, tienes margen 
para "separarlos en el tiempo".

Espero que con esto resuelvas el problema.


Un Saludo,
--
Miguel Ángel Rodríguez Muíños
Dirección Xeral de Saúde Pública
Consellería de Sanidade
Xunta de Galicia
http://dxsp.sergas.es







De: R-help-es  en nombre de David Contreras 

Enviado: miércoles, 7 de febrero de 2018 21:36
Para: r-help-es
Asunto: [R-es] Ayuda OVER_QUERY_LIMIT

Buena tarde a todos,

Estos realizando un proceso que requiere asignar coordenadas a un buen
número de registros. Estoy usando el paquete ggmap, pero luego de hacer uso
de la georeferenciación se genera el error "geocode failed with status
OVER_QUERY_LIMIT" debido al límite de registros diarios. A pesar de decir
el error que es cada día, ya me está generando error con pocos registros
incluso sin completar los 2500 del día.
En general la georeferenciación sirve de manera intermitente, es decir a
veces sirve y a veces no.

Nos gustaría si hay alguna forma de evitar que se genere este error sin
tener que pagar dinero por la licencia de API.

Gracias.




*David Contreras*

Estadístico.
davidcontrera...@gmail.com 

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es



Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso-confidencialidad

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] plotting the regression coefficients

2018-02-08 Thread greg holly
 Hi Petr;

Thanks for your reply. It is much appreciated. A small example is given
below for 4 independent and 4 dependent variables only. The values given
are regression coefficients.I have looked ggplot documents before writing
to you. Unfortunately, I could not figure out as my experience in ggplot is
ignorable

Regards.
Greg

y1 y2 y3 y4
x1 -0.19 0.40 -0.06 0.13
x2 0.45 -0.75 -8.67 -0.46
x3 -0.09 0.14 1.42 0.06
x4 -0.16 -0.01 2.21 0.06


On Thu, Feb 8, 2018 at 10:19 AM, PIKAL Petr  wrote:

> Hi
>
> Example, example, example - preferably working.
>
> Wild guess - did you try ggplot?
>
> Cheers
> Petr
>
>
> > -Original Message-
> > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of greg
> holly
> > Sent: Thursday, February 8, 2018 8:14 AM
> > To: r-help mailing list 
> > Subject: [R] plotting the regression coefficients
> >
> > Hi Dear all;
> >
> > I would like to create a plot for regression coefficients with each
> independent
> > variable (x) along the side and the phenotypes (y) across the top (as
> given
> > below). For each data point, direction and magnitude of effect could be
> color
> > and significance could be the size of the circle? Is this possible?
> >
> >
> > I would greatly be appreciated your help.
> >
> > Thanks,
> >
> > Greg
> >
> >
> >
> >   y1 y2 y3 y4 y5 y6
> > x1
> > x2
> > x3
> > x4
> > x5
> > x6
> > x7
> > x8
> > x9
> > x10
> > x11
> > x12
> > x13
> > x14
> > x15
> > x16
> > x17
> > .
> > .
> >
> > [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> 
> Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou
> určeny pouze jeho adresátům.
> Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě
> neprodleně jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie
> vymažte ze svého systému.
> Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email
> jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
> Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi
> či zpožděním přenosu e-mailu.
>
> V případě, že je tento e-mail součástí obchodního jednání:
> - vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření
> smlouvy, a to z jakéhokoliv důvodu i bez uvedení důvodu.
> - a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout;
> Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany
> příjemce s dodatkem či odchylkou.
> - trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve
> výslovným dosažením shody na všech jejích náležitostech.
> - odesílatel tohoto emailu informuje, že není oprávněn uzavírat za
> společnost žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn
> nebo písemně pověřen a takové pověření nebo plná moc byly adresátovi tohoto
> emailu případně osobě, kterou adresát zastupuje, předloženy nebo jejich
> existence je adresátovi či osobě jím zastoupené známá.
>
> This e-mail and any documents attached to it may be confidential and are
> intended only for its intended recipients.
> If you received this e-mail by mistake, please immediately inform its
> sender. Delete the contents of this e-mail with all attachments and its
> copies from your system.
> If you are not the intended recipient of this e-mail, you are not
> authorized to use, disseminate, copy or disclose this e-mail in any manner.
> The sender of this e-mail shall not be liable for any possible damage
> caused by modifications of the e-mail or by delay with transfer of the
> email.
>
> In case that this e-mail forms part of business dealings:
> - the sender reserves the right to end negotiations about entering into a
> contract in any time, for any reason, and without stating any reasoning.
> - if the e-mail contains an offer, the recipient is entitled to
> immediately accept such offer; The sender of this e-mail (offer) excludes
> any acceptance of the offer on the part of the recipient containing any
> amendment or variation.
> - the sender insists on that the respective contract is concluded only
> upon an express mutual agreement on all its aspects.
> - the sender of this e-mail informs that he/she is not authorized to enter
> into any contracts on behalf of the company except for cases in which
> he/she is expressly authorized to do so in writing, and such authorization
> or power of attorney is submitted to the recipient or the person
> represented by the recipient, or the existence of such authorization is
> known to the recipient of the person represented by the recipient.
>

[[alternative HTML version deleted]]