Hello R,
I am attempting a spatio-temporal model in mgcv gam.
I am using a factor smooth to define each of 27 areal units in a shapefile
("id") as subjects (essentially) which have undergone 23 repeated
measurements in time ("year").
I am using the Markov random field to define the neighbor rela
Jeff,
You need to reshape your data frame. If you use ggplot, you will often
have to present your data in "long format"
Use the reshape2 package.
I made a sample data frame because you didn't provide one. I also change
your x and y labels because they made no sense.
data <- data.frame(
time
Hello,
if you want to fit different models to each of deliveries and launches,
use the wide format instead:
ggplot(data = data, aes(x = timeline)) +
geom_point(aes(y = deliveries), color = "blue") +
geom_smooth(aes(y = deliveries), color = "blue", method = lm, formula
= y ~ log(x)) +
Sorry, should be geom_smooth, not stat_smooth. They both work the same
way or very close to it.
Rui Barradas
On 24/08/2018 05:08, Rui Barradas wrote:
Hello,
The trick is to reshape your data from wide to long format.
There are many ways to do this, I will use package reshape2.
Make up a data
Hello,
The trick is to reshape your data from wide to long format.
There are many ways to do this, I will use package reshape2.
Make up a dataset:
library(ggplot2)
library(reshape2)
set.seed(9773)
n <- 20
data <- data.frame(timeline = 1:n,
deliveries = log(1:n) + runif(n),
R-help
I want to add two smooth lines (geom_smooth()) for each scatter plot. How
do I do that?
ggplot() +
geom_point(data=data, aes(x=timeline, y=deliveries), color="blue") +
geom_point(data=data, aes(x=timeline, y=launches), color="red") +
xlab("Deliveries") +
ylab("Launches")
On Thu, Aug 23, 2018 at 7:33 AM Berwin A Turlach
wrote:
>
> G'day Rolf,
>
> On Thu, 23 Aug 2018 23:34:38 +1200
> Rolf Turner wrote:
>
> > I guess I should have said --- I did
> >
> > sudo make prefix=/usr install
> >
> > which puts stuff into /usr rather than into /usr/local.
>
> ???
>
> I d
This is not reproducible because you have not provided the plot code or sample
data. Output of sessionInfo would probably be appropriate as well.
As to whether needing to load objects is typical... yes, rmarkdown runs from a
fresh environment to emphasize reproducibility, but your load command i
G'day Rolf,
On Thu, 23 Aug 2018 23:34:38 +1200
Rolf Turner wrote:
> I guess I should have said --- I did
>
> sudo make prefix=/usr install
>
> which puts stuff into /usr rather than into /usr/local.
???
I do not remember ever specifying "prefix=foo" at the make install
stage. Not for a
This is about statistics , not R programming, and so is off topic here.
Your first port of call for this sort of thing should be the package docs,
**including any references** . There are references given. Have you studied
them??
Cheers,
Bert Gunter
"The trouble with having an open mind is that
G'day Rolf,
On Thu, 23 Aug 2018 22:57:35 +1200
Rolf Turner wrote:
> I *think* that this is an R question (and *not* an RStudio question!)
Others may disagree... :)
> I have, somewhat against my better judgement, decided to experiment
> with using RStudio.
Very good if you are still involved w
On 08/23/2018 11:09 PM, Jan T Kim via R-help wrote:
Hi Rolf & All,
I haven't built R in a while, but my general expectation of an
autotools based build & install would be that the default prefix
is /usr/local, rather than /usr. So I'd expect the shared libs
in /usr/local/lib, /usr/local/lib64
Hi Rolf & All,
I haven't built R in a while, but my general expectation of an
autotools based build & install would be that the default prefix
is /usr/local, rather than /usr. So I'd expect the shared libs
in /usr/local/lib, /usr/local/lib64 etc.
I also have a recollection that I once installed R
I *think* that this is an R question (and *not* an RStudio question!)
I have, somewhat against my better judgement, decided to experiment with
using RStudio.
I downloaded and install RStudio. Easy-peasy. Nice lucid instructions.
Then I tried to start RStudio ("rstudio" from the command li
I'm having difficulty getting plots into ioslides. It seems to me
that the scale is completely out, but I can't figure out what to do
about it. Whatever I try, I get the title slide, then a second with a
horizontal line and a vertical line in the bottom right corner. It
looks like a badly scaled
Dear All,
I am not sure about the summary of the function ca.jo. I have posted my
query here :-
https://stats.stackexchange.com/questions/363188/interpreting-the-names-used-in-the-output-of-johansen-test-in-package-urca-in-r
I did not receive any reply so I am posting my query here.
Many thanks
On 08/23/2018 08:35 PM, Rui Barradas wrote:
Hello,
Sorry but I don't believe this is a question for r-help.
r-help is meant for questions about R code, you should find out what
type of file do you have. Maybe open it and see its contents.
There is really nothing we can do.
Indeed. But the
Hello,
Sorry but I don't believe this is a question for r-help.
r-help is meant for questions about R code, you should find out what
type of file do you have. Maybe open it and see its contents.
There is really nothing we can do.
Rui Barradas
On 23/08/2018 07:35, Vidya Alagiriswamy wrote:
On 08/23/2018 06:15 PM, Ivan Calandra wrote:
Thanks all for the enlightenment.
So, it does make sense that mean() produces NaN and median()/sd() NA,
from a calculation point of view at least.
But I still think it also makes sense that the mean of NA is NA as well,
be it only for consistency
HI,
I am new to R and want to read the data file with extension .v8x. The
file is hints2003.d2006_06_02.public.v8x. Is anyone familiar with this
extension? Please help.
Thanks,
Vidya
[[alternative HTML version deleted]]
__
R-help@r-project
20 matches
Mail list logo