Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Jim Lemon
Hi Luigi, This is a result of the "pretty" function that calculates hopefully good looking axis ticks automatically. You can always specify ylim=c(1.0E09,max(Y)) if you want. Jim On Thu, Jul 9, 2020 at 10:59 PM Luigi Marongiu wrote: > > Hello, > I have these vectors: > ``` > X <- 1:7 > Y <- c(14

Re: [R] output from R to simple html

2020-07-09 Thread Jim Lemon
Hi Marc, The "htmlize" function in the prettyR package might be what you are looking for. Jim On Thu, Jul 9, 2020 at 5:02 AM Marc Roos wrote: > > > > I would like to parse some input to an R script and use its result > output (maybe in json) on a web page. I think this shiny framework is a > bit

Re: [R] Fixed effects regression constant (intercept) using lfe::felm

2020-07-09 Thread Rasmus Liland
On 2020-07-09 07:15 -0700, Bert Gunter wrote: > On Thu, Jul 9, 2020 at 3:09 AM Valerio Leone Sciabolazza > wrote: > > > > When calculating a panel data > > regression with multiple fixed > > effects using the function felm() > > from the lfe package, no constant > > term (i.e. intercept) is

Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Fox, John
Dear Bernard, > On Jul 9, 2020, at 10:25 AM, Bernard Comcast > wrote: > > Use the xlim option in the plot function? I think you mean ylim, but as you'll find out when you try it, you still (reasonably) get an evenly spaced tick mark at 0: plot(Y ~ X, ylim=c(1e9, 6e11)) The "right" thing to

Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Rui Barradas
Hello, Like this? plot(Y~X, log="y") Hope this helps, Rui Barradas Às 14:59 de 09/07/20, Luigi Marongiu escreveu: Thank you, but why it does not work in linear? With the log scale, I know it works but I am not looking for it; is there a way to force a linear scale? Regards Luigi On Thu, J

Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Bernard Comcast
Use the xlim option in the plot function? Bernard Sent from my iPhone so please excuse the spelling!" > On Jul 9, 2020, at 10:06 AM, Luigi Marongiu wrote: > > Thank you, > but why it does not work in linear? With the log scale, I know it > works but I am not looking for it; is there a way to f

Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Bert Gunter
Please consult ?axis and follow its links (e.g. "axTicks" and "pretty") for the details of the algorithm used to construct axis annotation. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom

Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Fox, John
Dear Luigi, > On Jul 9, 2020, at 9:59 AM, Luigi Marongiu wrote: > > Thank you, > but why it does not work in linear? With the log scale, I know it > works but I am not looking for it; is there a way to force a linear > scale? The scale *is* linear and the choice of tick marks, which are evenly

Re: [R] Fixed effects regression constant (intercept) using lfe::felm

2020-07-09 Thread Bert Gunter
While you may get lucky here, your experience on SO indicates that you may do better by contacting the package maintainer (?maintainer) and asking him/her to refer you to appropriate references, as this sounds like a statistical methodology query. Bert Gunter "The trouble with having an open mind

Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Luigi Marongiu
Thank you, but why it does not work in linear? With the log scale, I know it works but I am not looking for it; is there a way to force a linear scale? Regards Luigi On Thu, Jul 9, 2020 at 3:44 PM Fox, John wrote: > > Dear Luigi, > > > On Jul 9, 2020, at 8:59 AM, Luigi Marongiu wrote: > > > > He

Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Fox, John
Dear Luigi, > On Jul 9, 2020, at 8:59 AM, Luigi Marongiu wrote: > > Hello, > I have these vectors: > ``` > X <- 1:7 > Y <- c(1438443863, 3910100650, 10628760108, 28891979048, 78536576706, > 213484643920, 580311678200) > plot(Y~X) > ``` > The y-axis starts at 0e0, but the first value is 1.4 billi

[R] [R-pkgs] admixr: An Interface for Running 'ADMIXTOOLS' Analyses

2020-07-09 Thread Martin Petr
Dear R users, I would like to introduce my R package, admixr, which provides an interface for performing population genetic analyses using the ADMIXTOOLS suite of command-line utilities: https://cran.r-project.org/package=admixr. ADMIXTOOLS (https://www.genetics.org/content/192/3/1065) is a very

[R] plot shows exponential values incompatible with data

2020-07-09 Thread Luigi Marongiu
Hello, I have these vectors: ``` X <- 1:7 Y <- c(1438443863, 3910100650, 10628760108, 28891979048, 78536576706, 213484643920, 580311678200) plot(Y~X) ``` The y-axis starts at 0e0, but the first value is 1.4 billion. Why the axis does not start at 1e9? -- Best regards, Luigi ___

[R] Fixed effects regression constant (intercept) using lfe::felm

2020-07-09 Thread Valerio Leone Sciabolazza
Dear list users, When calculating a panel data regression with multiple fixed effects using the function felm() from the lfe package, no constant term (i.e. intercept) is generated in the summary results. In an old post on stackoverflow [1], someone suggested that it is possible to retrieve the va