Hey list!
I have a csv-file with two variables: (Date,CMI)
Date,CMI
Jan-93,3.24
Feb-93,-2.56
.
.
.
Dec-06, 8.25
When I want to plot this dataset, R is sorting the date in alphabetical
order. Is there any way to tell R not to do it?
I know it is probably an easy issue but I couldn't find a solu
To: Schreiber, Stefan
Cc: r-help@r-project.org
Subject: Re: [R] x-axis with month and year
Check out the zoo package:
Lines <- "Date,CMI
Jan-93,3.24
Feb-93,-2.56
Dec-06, 8.25"
library(zoo)
z <- read.zoo(textConnection(Lines),
FUN = as.yearmon, format = "%b-%y",
sep
Hi there,
I hope you guys can help me with the following:
If have a file like this:
yearclone codeheight
19954 4-1 1
19964 4-1 2
19974 4-1 3
19954 4-2 1
19964 4-2 2
19974 4-2 3
19955 5-1 1
Hi all,
I know that I can run an one way ANOVA on the absolute residual values
to check the assumption of equal variances:
model<- lm(y~x)
summary(lm(abs(model$resid~x)))
What if I have two factors? As far as I know I have to check this
assumption on very factor/level combination. So if I have 3
Dear list,
I cannot figure out why, after sub-setting my data, that particular item
which I don't want to plot is still in the newly created subset (please
see example below). R somehow remembers what was in the original data
set. A work around is exporting and importing the new subset. Then it's
Thanks for the fast response and your comments!
That works perfect!
Another little mystery solved ;)
Stefan
From: Felipe Carrillo [mailto:mazatlanmex...@yahoo.com]
Sent: Tuesday, November 01, 2011 3:54 PM
To: Schreiber, Stefan; r-help@r-project.org
Subject: Re: [R] factor level
Dear list members,
I have just a quick question:
I fitted a non-linear model y=a/x+b to describe my data (x=temperature and
y=damage in %) and it works really nicely (see example below). I have 7
different species and 8 individuals per species. I measured damage for each
individual per specie
t.
Stefan
-Original Message-
From: r-help-boun...@r-project.org on behalf of ted.hard...@wlandres.net
Sent: Fri 11/11/2011 4:07 PM
To: r-help@r-project.org
Subject: Re: [R] Predicting x from y
Follow-up: See at end.
On 11-Nov-11 21:16:02, Ted Harding wrote:
> On 11-Nov-11 14:51:
Hi all,
I'd like to compare all levels of my interaction with each other. I read
the pdf 'Additional multcomp Examples' but even though there is an
example with an interaction it doesn't work for me when I want to
compare within and between groups.
Here is an example:
d.fr<-data.frame(id=r
Or with what I just learned:
subset<-[mydata$age %in% c(20:30),]
Thanks for explaining Michael!
Stefan
-Original Message-
From: r-help-boun...@r-project.org on behalf of Marc Schwartz
Sent: Thu 1/12/2012 8:38 PM
To: R. Michael Weylandt
Cc: r-help@r-project.org; manu79
Subject: Re: [R]
But better without calling your new data frame "subset" since it's a function
as well.
-Original Message-
From: r-help-boun...@r-project.org on behalf of Schreiber, Stefan
Sent: Thu 1/12/2012 8:50 PM
To: Marc Schwartz; R. Michael Weylandt
Cc: r-help@r-project.org; manu79
Thanks for the warning !
Better use Michael's or Marc's suggestion instead.
Stefan
-Original Message-
From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com]
Sent: Thu 1/12/2012 9:05 PM
To: Schreiber, Stefan
Cc: Marc Schwartz; r-help@r-project.org; manu79
Subject: Re
Hi all,
I was wondering if you can help me with the following situation:
I have a data frame that includes weather station data for 30 years in
the form:
YEAR, MONTH, DAY, TEMP
1970, 01, 01, -15
...
1999, 12, 31, -21
I would like to add another variable "JULIAN" that assigns the integers
1 to 3
That's it. Nice and easy :)
Thanks!
Stefan
-Original Message-
From: Tyler Rinker [mailto:tyler_rin...@hotmail.com]
Sent: Mon 4/30/2012 6:40 PM
To: Schreiber, Stefan; r-help@r-project.org
Subject: RE: [R] for loop problem
I don't really work with dates but thought I'd pass
Hey list!
It looks simple, though it's not possible for me to plot the following
properly:
(some made-up data)
GrSeClone1 Clone2 Clone3 Clone4 Clone...
G1999 2 3 6 5
G2000 2 5 7 4
G2001 5 3 7 3
G2002 4 5 8 3
--Original Message-
From: Greg Snow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2008 12:06 PM
To: Schreiber, Stefan; r-help@r-project.org
Subject: RE: Why horizontal bars instead of a line
Remember that computers are not as smart as you. Some smart people have
written instructio
Hey list,
Does anybody knows a command to centre the tick mark labels exactly
between the tick points (right shift)?
And then to exclude the last tick label on the right?
I know one can shift them using the 'hadj' option in par. But I am
wondering if there is a more convenient command!
Thanks a
Thank you very much!
That's the way to go!
Cheers,
Stefan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2008 10:52 AM
To: Schreiber, Stefan
Cc: r-help@r-project.org; [EMAIL PROTECTED]
Subject: Re: [R] shifting ticks to left or
Hey list,
I have a barplot with a line plot overlayed (on the 2nd y axis) and it
looks fine except that the origin (0) on the 2nd y axis (side=4) is not
lining up with the origin on the 1st y-axis (side=2, from the barplot).
Is there a way to either shift the 2nd y-axis (line plot) down or
readj
Dear List!
When I'm using "plot(lm(y~x))" R shows me 4 different plots. They pop-up
individually by clicking on the graph. How can I save for example the
2nd plot? I've found a camera button that says "copy to the clipboard
as a metafile" once you place the mouse pointer on it. I tried, though
it
Woohoo!
Thanks a lot Juliet!
Stefan
-Original Message-
From: Juliet Hannah [mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2008 2:42 PM
To: Schreiber, Stefan
Cc: r-help@r-project.org
Subject: Re: [R] save single image when using plot(lm(y~x))
Try:
mylm <- plot(lm(y~x))
plot(m
Thanks Paul!!
I wasn't aware of the command "plot.lm". Therefore, I couldn't find the
help-file either.
Cheers,
Stefan
-Original Message-
From: Paul Hiemstra [mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2008 5:10 PM
To: Juliet Hannah
Cc: Schreib
22 matches
Mail list logo