Displaying 5 results from an estimated 5 matches for "coenvanhasselt".
2010 Jul 06
1
xyplot: filtering out empty plots
Hello,
I would like to know how I can filter out empty plots in xyplot, when
stratifying on some variables.
Example:
I have a dataset in which I plot CONC ~ TIME, stratified for patient
ID(1,2,..,100), FORM(1,2) and BOOST (1,2).
Some patients (ID's) do not have values for all stratification
conditions. I.e. one patient may have values for FORM=1 and BOOST=1,2,
while others may have data on
2009 Mar 28
2
Output an RWeka model via sink
When I sink the output of an RWeka model to a text file, the output file appears empty:
library(RWeka)
model = LogitBoost(Species~.,data=iris)
print(model)
sink("output.txt")
print(model)
#file output.txt is created, but it is blank
sink()
Am I doing anything wrong?
[[alternative HTML version deleted]]
2010 Oct 17
1
lattice xyplot - formatting of multiple Y variables when using subgroups
Hi all,
Using xyplot I want to print to Y variables (y1, y2) versus X, conditional
on the group.
How can I obtain a line (type="l") for one relationship (ie. y1 ~ x) and
points (type="p") for the other (y2 ~ x) ?
library(lattice)
# create some sample data
df<-data.frame(group=as.factor(c(rep("a",4), rep("b",4))), # grouping
variable for conditional
2010 Sep 02
2
reshape to wide format takes extremely long
Hello,
I have a data.frame with the following format:
> head(clin2)
Study Subject Type Obs Cycle Day Date Time
1 A001101 10108 ALB 44.00000 98 1 2004-03-11 14:26
2 A001101 10108 ALP 95.00000 98 1 2004-03-11 14:26
3 A001101 10108 ALT 61.00000 98 1 2004-03-11 14:26
5 A001101 10108 AST 33.00000 98 1 2004-03-11 14:26
I want to transform this
2011 May 27
1
lattice - change background strip color in one panel
Hello,
I would like to change the background color in only -one- of the strips in a
multipanel lattice xyplot, from the default yellow-brown color.
Until now, I only managed to change the background strip color in all of the
strips using the par.settings, but I do not get it to work for only 1 strip.
Below is the current code I am using.
The resulting plot is here: