Displaying 20 results from an estimated 10000 matches similar to: "multiple hypothesis testing"
2009 Mar 13
5
Selecting / creating unique colours for behavioural / transitional data
Dear all,
This seems like a simple problem but i've searched the help files and tried
various options but failed, so apologies in advance for asking what i'm sure
is an easy thing to do!
In short, I have displayed behavioural data using the TraMineR package such
that there is a colour change between the transition of behaviours, however,
all the methods that i have used thus far have
2009 Mar 13
6
R multiline expression grief
Dear all.
After much grief I have finally found the source of some weird
discrepancies in results generated using R. It turns out that this is
due to the way R handles multi-line expressions. Here is an example
with R version 2.8.1:
----------------------------------------------------
# R-script...
r_parse_error <- function ()
{
a <- 1;
b <- 1;
c <- 1;
d <- a + b + c;
e
2009 Mar 13
1
How to combine xtable and minipage with Sweave ?
Hello,
I'm trying to put a dynamic table and a dynamic graph side by side in a pdf
document using Sweave.
The data.frame used to generate the table is called rg (rg.txt):
"Date"; "Code"; "Data1"; "Data2"
"2009-03-10";"1";1958;147
"2009-03-10";"2";302;144
"2009-03-10";"3";4;141
2006 Nov 30
4
R_WinEdt question
if I want to put fig1plot to the left, figYPplot to the right
figYAaplot on the bottom.
How to modify the following cod to do these?
\begin{figure}[H]
\centering
\begin{minipage}[t]{0.5\textwidth}
\centering
<<label=fig1plot,fig=TRUE,echo=FALSE>>=
<<fig1plot>>
@
%\caption{Caption 1}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\centering
2011 Jun 09
2
scatterplot3d - help assign colors based on multiple conditions
Hi
I am relatively new to R and am trying to figure out to plot 3d scatter plot using defined colors based on x-axis and y-axis values. Right now in the code below, I assign colors based on certain values in the names of the x-axis. Now if I want to extend the condition to assign a color based on the names of both x-axis and y-axis values, what should I be doing? Any help or ideas would be
2009 Jan 02
1
[Fwd: Re: [R] Randomly remove condition-selected rows from a matrix]
Following Duncan's suggestion, I forward the below to R-devel.
vQ
-------- Original Message --------
Subject: Re: [R] Randomly remove condition-selected rows from a matrix
Date: Fri, 02 Jan 2009 10:34:52 -0500
From: Duncan Murdoch <murdoch at stats.uwo.ca>
To: Wacek Kusnierczyk <Waclaw.Marcin.Kusnierczyk at idi.ntnu.no>
CC: R help <R-help at stat.math.ethz.ch>
1998 Jul 05
0
R-beta: Suggestion for a very minor change to Rd.sty
Dear R gurus and users,
for some functions in some of the many packages available for R, with
the current definition of \Header given in Rd.sty, the heading bumps
into the surrounding words in documentation printed via LaTeX. To
alleviate this minor typographical mishap, I'd like to suggest the
change to R/doc/manual/Rd.sty included below as a context diff. With
this minor diff applied, the
2013 Jun 10
1
Selecting divergent colors
Hi,
I was trying to make a density plot with 13 samples. To distinguish each
sample, it would be good if each color is as different as possible from the
other colors. I could use the built in function, but that does not do more
than 8 colors and then goes back to recycling the cols. If I use a palette,
then it is really difficult to distinguish between the colors.
So, is there a way that I can
2011 Mar 15
1
How to read only specified columns from a data file
R-help,
I'm trying to read a data file with plenty of columns.
I just need the first 5 but it doe not work by doing something like:
> mycols <- rep(NULL, 430) ; mycols[c(1:4)] <- NA
> read.table(myfile, skip=2, colClasses=mycols)
Any suggestions?
Thanks in advance
2012 May 07
1
Plotting a raster image
Hello,
I have a data frame which looks like
> head(d)
a1 a2 n j col
1 1 1 88341002 11 #E7E7E7
2 1 2 25094882 11 #E7E7E7
3 1 3 16916246 11 #E7E7E7
4 1 4 14289229 11 #E7E7E7
5 1 5 11945929 11 #E7E7E7
6 1 6 8401235 11 #E7E7E7
The values in 'j' run from 1 to 11. I would like to plot the point (a1,a2)
with color given by j
I tried
mi <-
2009 Apr 25
0
incorrect output and segfaults from sprintf with %*d (PR#13675)
On Fri, Apr 24, 2009 at 14:40, Wacek Kusnierczyk
<Waclaw.Marcin.Kusnierczyk at idi.ntnu.no> wrote:
> maechler at stat.math.ethz.ch wrote:
>>
>> =A0 =A0 vQ> sprintf has a documented limit on strings included in the ou=
tput using the
>> =A0 =A0 vQ> format '%s'. =A0It appears that there is a limit on the leng=
th of strings included
>> =A0 =A0 vQ>
2008 Sep 03
1
Non-constant variance and non-Gaussian errors
Hi Paul,
Take a look at gam() from package mgcv (gam = generalized additive models), maybe this will help you. GAMs can work with other distributions as well. Generalized additive models consist of a random component, an additive component, and a link function relating these two components. The response Y, the random component, is assumed to have a density in the exponential family. I am not sure
2005 Mar 30
5
2d plotting and colours
Hi!
I am new to R just 3 days in it and i apologize if my questions seem very
trivial and consumed your valuable time.
I am coding in perl and i stumbled upon R regarding plotting good
statistical graphs.
I tried the kmean clustering for a large matrix ,say > 150 * 150 . I tried
the example code given in the tutorial to perform 2d plot
# i ranges from 2 to 10
cl <- kmeans(x, i, 20)
2009 May 14
1
Simulation)
I wrote
As a beginner, I agree .... the for loop is much clearer to me.
Wacek Kusnierczyk <Waclaw.Marcin.Kusnierczyk at idi.ntnu.no> replied
>
>well, that's quite likely. especially given that typical courses in
>programming, afaik, include for looping but not necessarily functional
>stuff -- are you an r beginner, or a programming beginner?
>
Both. My PhD is in
2009 Mar 11
0
Working up examples of barplots with customized marginal items
Hello, everybody:
I'm back to share a long piece of example code. Because I had trouble
understanding the role of par() and margins when customizing barplots,
I have struggled with this example. In case you are a student wanting
to place legends or textual markers in the outer regions of a barplot,
you might run these examples.
There are a few little things I don't quite understand.
2009 Mar 29
2
if does not covert raw to logical (PR#13630)
Full_Name: Wacek Kusnierczyk
Version: 2.8.0 and 2.10.0 r48242
OS: Ubuntu 8.04 Linux 32 bit
Submission from: (NULL) (80.202.30.36)
The following raises an error:
if (as.raw(1)) 1
# error: unimplemented type 'raw' in 'asLogical'
However, ?'if' says:
"
Arguments:
cond: A length-one logical vector that is not 'NA'. Conditions of
length
2008 Nov 17
2
assign("FALSE", TRUE)
It was recently pointed out by Wacek Kusnierczyk that although one is
prevented from doing
FALSE <- TRUE
one *can* do
assign("FALSE",TRUE)
and have an object named ``FALSE'' with value TRUE in one's workspace.
This apparently has no deleterious effects; e.g. doing
sample(1:7,replace=FALSE)
gives a random permutation of 1:7 as expected and desired. I.e. the
local
2009 Apr 29
1
Newbie R question PART2
Hi Tena,
I recommend rapache for building websites with R. See
http://biostat.mc.vanderbilt.edu/rapache/
-Ista
> ---------- Forwarded message ----------
> From: "Tena Sakai" <tsakai at gallo.ucsf.edu>
> To: <ted.harding at manchester.ac.uk>, <r-help at r-project.org>
> Date: Tue, 28 Apr 2009 15:04:53 -0700
> Subject: Re: [R] Newbie R question PART2
>
2009 Mar 30
1
duplicated fails to rise correct errors (PR#13632)
Full_Name: Wacek Kusnierczyk
Version: 2.8.0 and 2.10.0 r48242
OS: Ubuntu 8.04 Linux 32 bit
Submission from: (NULL) (129.241.110.161)
In the following code:
duplicated(data.frame(), incomparables=NA)
# Error in if (!is.logical(incomparables) || incomparables)
.NotYetUsed("incomparables != FALSE") :
# missing value where TRUE/FALSE needed
the raised error is clearly not the
2008 Jun 18
1
strsplit and the empty string
Hello,
I am wondering about the behaviour of strsplit. When the pattern
matches the beginning of the search string, the mepty string is added to
the result, but that's not the case when the pattern matches the end of
the search string:
strsplit(" hello dolly ")
[1] "" "hello" "dolly"
The man for strsplit explains the algorithm:
"
The algorithm