I'm using R on Mac OS X and I have a question. When re-sizing a
quartz window, the fonts sizes and line weights in a graphic all stay
the same - the distances between them just keep getting larger. Is
there a way to change this behavior (perhaps with graphics
parameters) so that when
I'm trying to create a barplot that has two sets of data next to each
other. I'm using barplot with the add=TRUE option, but this simply
adds the second dataset on top of the first, obscuring it. How do I
add the new data to the right on the existing barplot so that both
sets are
I'd like to replace a value in a data frame with an NA, but can't
figure out how.
For example, say you have
a-c(1,2,3,4)
b-c(5,6,7,8)
data-data.frame(a,b)
Now, how would you set the third row of the second column ( data
[[3,2]] ) to NA?
I have tried all types of permutations with is.na,
Sorry to ask such a simple question, but I can't find the answer after
extensive searching the docs and the web.
How do you remove a component from a list? For example say you have:
lst-c(5,6,7,8,9)
How do you remove, for example, the third component in the list?
lst[[3]]]-NULL generates
What's the best / simplest way to create 95% confidence bands for a
model created with lm() that can be plotted around teh regression
line? I've looked everywhere for this - I guess I must be missing
something.
- Jason
__
Is it possible to use a string as a variable name? For example:
foo=var1
frame$foo # frame is a data frame with with a column titled var1
This does not work, unfortunately. Am I just missing the correct
syntax to make this work?
- Jason
__
Can anyone tell me how to select just one row of a data frame? Say I
want just the third row, what would be the syntax? Every notation I
try just gives me columns.
Thanks
- Jason
__
R-help@stat.math.ethz.ch mailing list
I'd like to do a simple one-way ANOVA comparing the means of 6
groups. But it seems like the only way to do an ANOVA in R is to
specify some sort of model, where there is an outcome or dependent
variable that is a function of independent variables (linear model).
But I don't have a
that there is no significant variation between the groups.
Hope this helps.
Regards, Adai
On Fri, 2006-03-10 at 11:24 -0500, Jason Horn wrote:
I'd like to do a simple one-way ANOVA comparing the means of 6
groups. But it seems like the only way to do an ANOVA in R is to
specify some sort of model
The manual entry for as.POSIX says this about time zone codes...
Usage
as.POSIXct(x, tz = )
tz
A timezone specification to be used for the conversion...
but it fails to mention what these specifications are. So far, I
have tried...
as.POSIX(x, tz=UTC) ... works, gives UTC times
Whoops,
[EDIT]
as.POSIX(x, tz=UTC) ... works, gives UTC times
as.POSIX(x, tz=EST) ... works, gives EST times
as.POSIX(x, tz=CST) ... does NOT work, gives UTC times
[/EDIT]
On Mar 7, 2006, at 8:05 AM, Jason Horn wrote:
as.POSIX(x, tz=UTC) ... works, gives UTC times
as.POSIX(x, tz=UTC
if that works on your system.
On 3/7/06, Jason Horn [EMAIL PROTECTED] wrote:
Whoops,
[EDIT]
as.POSIX(x, tz=UTC) ... works, gives UTC times
as.POSIX(x, tz=EST) ... works, gives EST times
as.POSIX(x, tz=CST) ... does NOT work, gives UTC times
[/EDIT]
On Mar 7, 2006, at 8:05 AM, Jason
Say you have a POSIX object that is in UTC. How do you change the
values to another timezone?
If I do this:
times - strptime(times, %H:%M:%S)
times1 - as.POSIXct(times, tz=UTC)
times2 - as.POSIXct(times, tz=CDT6CST)
times1 id UTC, but times2 is still UTC, not CTD. Why? Is the only
was to
I have a vector of POSIX times/dates (called times) that I want to
plot. But I'm having trouble because R reports the length of the
vector incorrectly. Can someone help me figure out what's going on
here?
This code
print(times)
print(class(times))
print(length(times))
Produces
Can anyone think of a way to create a pretty() sequence that excludes
zero? Or a way to remove the zero from a sequence after using pretty()?
Thanks,
- Jason
Jason Horn
Boston University Department of Biology
5 Cumington Street Boston, MA 02215
[EMAIL PROTECTED]
office: 617 353 6987
cell
text resize proportionately with window size?
Thanks,
- Jason
Jason Horn
Boston University Department of Biology
5 Cumington Street Boston, MA 02215
[EMAIL PROTECTED]
office: 617 353 6987
cell: 401 588 2766
[[alternative HTML version deleted
Hi all,
I'm new to the list here, and I have what I think is a simple
question. Using the circular package, is there a way to plot the
mean and variance on top of a rose diagram or other plot of the data?
Thanks in advance...
- Jason
Jason Horn
Boston University Department of Biology
5
17 matches
Mail list logo