Displaying 20 results from an estimated 400 matches similar to: "xyplot and separate abline per plot"
2008 Aug 05
1
xyplot key issue - line colors
I have a problem regarding the colors assigned to the lines in the key
to an xy plot. I specify the plot like this:
xyplot(numbers~sqrt(breaks)|moltype+disttype, groups = type, data = alldata,
layout = c(3,2), type = "l" , lwd = 2, col = c("gray", "skyblue"),
key = simpleKey(levels(alldata$type), points = FALSE, lines = TRUE,
columns = 2, lwd = 2,
2010 Jan 09
2
aov function syntax
Hello,
I have a simple question about using the aov function syntax (ie. * + or :)
for the interaction of 2 factors. I have read the help files, and researched
other sites, and have included my source files. My goal is to measure the
signifigance of the interaction between population and condition (aka.
population:condition). I can't seem to figure it out.
1. In the first example the
2012 May 25
3
Multiple cbind according to filename
Hi all,
I'm just a beginner with R but I have not been able to search for any
relevant answer to my problem. I apologize if it has in fact been asked
before.
Recently I've realized that I need to combine hundreds of pairs of data
frames. The filenames of the frames I need to combine have unique strings.
This is my best guess as to the approach to take:
filenames<-list.files()
2009 Apr 10
1
Subset a data frame for plotting
Hello,
I have a question regarding how to subset/select parts of a data
frame (matrix) in order to plot data associated only with this subset.
Specifically I have a large data frame in which one column contains ID
values (dates), and other columns contain data I would like to plot
(temperature, light, etc.). I would like to break up this large matrix
so as to plot data associated
2010 Sep 13
2
How to tell R that "ABC" is the name of a dataset not a variable value
All,
For example, I have a dataset named "ABC" loaded into R
> ABC
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
and I also have a variable datasetname
> datasetname
[1] "ABC"
and I want to add this "ABC" dataset to an existing list "alldata"
> alldata <-NULL
> alldata <- as.list(alldata)
since I will
2012 Mar 27
1
matrix(unlist(strsplit(""))) 'missing value' issue
*I'm still a R noob, just had a couple of lectures about it in our research
master.
There is a Deal or no deal experiment where I have to write some code for.
Someone wrote a website to gather the data and write it in a .xlsx file.
These are seperate files for seperate participants so first I have to import
the seperate datafiles. I do that like this:
# Merge the xlsx files into one dataframe
2009 Jun 12
2
Automate a data load and merge
Hi R list,
I would like to automate, or speed up the process from which I take
several separate datasets, stored in .csv formate, import and merge
them by a common variable. So far I have greatly sped up the loading
process but cannot think of a way to automate the merger of all
datasets into a common data.frame.
My apologies if this has been covered, any R search suggestions are
2012 Mar 03
1
Problem running stepAIC within a function.
Hi
I need to a function that automatically fits a regression to data, using the
stepAIC. I've ran the code manually and it works fine. However, when I run
the function on the same data, the following error occurs:
Problem in regimp(fullsim = simt, fullsim1 = simt1,..: Length of (weights)
(variable 4) is 4271 != length of others (4278)
I got the function to output the length of the dataset
2004 Sep 09
2
Handling the windows clipboard/32KB limit
(R 1.9.1; Windows 2000;)
I'm just comparing ease of use, speed, etc for methods of transferring data frames in the Excel, MySQL, R triangle. It turns out that going from Excel to R (when doing this carefully). Using the clipboard is actually quite fast and efficient (2 seconds for transferring 120 000 cells on a common desktop computer as compared to much longer for going the RODBC route,
2008 Jul 09
4
Strptime/ date time classes
Dear all,
I've come across a problem using strptime, can anyone explain what's
going on? I'm using version 2.7.0 on Windows XP.
Thank you
Caroline
First read in a data file using read.table
alldata = read.table(file, header=F, skip=4, colClasses =
c("character","numeric"))
dim(alldata)
[1] 223960 2
# inefficient, safe way of sorting out missing or dodgy
2009 Sep 07
1
Omnibus test for main effects in the face of an interaction containing the main effects.
R 2.9.1
Windows XP
I am fitting a random effects ANOVA with two factors Group which has two levels and Time which has three levels:
fita<-lme(Post~Time+factor(Group)+factor(Group)*Time, random=~1|SS,data=blah$alldata)
I want to get the omnibus significance tests for each factor and the interaction. I believe I can get the omnibus test for the interaction by running the model:
2012 Jun 19
1
Possible bug when using encomptest
Hello R-Help,
-----------------------------------------------------------------------------------------------------------------------------------------
Issues (there are 2):
1) Possible bug when using lmtest::encomptest() with a linear model
created using nlme::lmList()
2) Possible modification to lmtest::encomptest() to fix confusing fail
when models provided are, in fact, nested.
I have
1999 Jan 20
1
Inherit names ...
No doubt an easy answer to this exists.
I have a data frame which comprises 4 matrices and 2 vectors:
year(1024,6),growth(1024,6),ycens(1024,6),gcens(1024,6),yinit(1024),ginit(1024)
The names of the 26 columns get denoted as y.1 to y.6, g.1 to g.6, yc.1 to
yc.6, gc.1 to gc.6, yi and gi as these are the internal names.
I wish to make a subset of the data using the logical vector R1(length
1024)
2002 Jun 13
0
possum sleeping: thanks and fisher.test() FEXACT error
Dear helplist
Many many thanks to everyone who helped me. The trick was to use
tabulate() or, better,
tab <- rep(0,50)
names(tab) <- 1:50
tab[names(table(sleeps))] <- table(c)
My original dataset was a list of 50 trees and a length 12 vector
recording which tree a certain possum slept in on 12 nights. As
Professor Ripley points out, a Monte-Carlo simulation is easy to set
up, and it
2010 Nov 10
1
plotting histograms/density plots in a triangular layout?
Hi!
I have a set of 49 pairwise comparisons that I have done. From this I
would like to plot either histograms or the density plots of the values
I get. Now, I can plot one histogram per comparison, but I have problems
getting the output I want. When plotting like I normally would do:
histogram(~percid | orgA_orgB, data = alldata)
I get the histograms next to eachother in a boxlike shape.
2010 Oct 21
1
All other variables in upper scope arg for stepAIC
Hi - I am trying to substitute for "the_other_y" in the code below. I want
y2 and y3 to be there when i is 1, y1 and y3 to be there when i is 2 and y1
and y2 to be there when i is 3. I'm sure it's to do with what format the
data should be in and I've tried alldata[,-i], but it fits all the columns
of alldata except i rather than each column one at a time. I've tried
2011 Apr 30
3
using tapply with multiple variables
HI All,
I have a long data file generated from a minimal pair test that I gave to
learners of Arabic before and after a phonetic training regime. For each of
thirty some subjects there are 800 rows of data, from each of 400 items at
pre and posttest. For each item the subject got correct, there is a 'C' in
the column 'Correct'. The line:
tapply(ALLDATA$Correct,
2010 Dec 10
1
WriteXLS error:Error in get(x, envir = envir) : variable names are limited to 256 bytes
Hello all,
I don't understand why this won't work. I have entered:
WriteXLS(alldata,'test.xls')
and I get this error message:
Error in get(x, envir = envir) : variable names are limited to 256 bytes.
My variable names are not very long, and are accepted by write.csv.
alldata is a list containing 4 dataframes, with each dataframe having the
the same variable names, which are:
2005 Jan 13
2
subsetting like in SAS
Hi,
Being in the process of translating some of my SAS programs to R, I
encountered one difficulty. I have a solution, but it is not elegant
(and not pleasant to implement).
I have a large dataset with many variables needed to identify the
origin of a sample, many to describe sample characteristics, others to
describe site characteristics.
I want only a (shorter) list of sites and their
2011 May 24
2
R as.numeric()
Hi,
I have a bit of a problem with as.numeric or as.double.
I read in an excel-file (either xlsx::read.xlsx2 or gdata::read.xls).
Select a subset and then try to make it numeric:
# read in the excel-file
alldata<-read.xlsx2("input.xls",1)
# select the subset
s<-subset(alldata, select=c("cI","cII","cIII","cIV","cV"))
# unluckily