1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
%\VignetteIndexEntry{ALL data intro}
%\VignetteDepends{ALL, rpart}
%\VignettePackage{ALL}
%
% NOTE -- ONLY EDIT THE .Rnw FILE!!! The .tex file is
% likely to be overwritten.
%
\documentclass[12pt]{article}
\usepackage{amsmath,pstricks}
\usepackage[authoryear,round]{natbib}
\usepackage{hyperref}
\usepackage{Sweave}
\textwidth=6.2in
\textheight=8.5in
%\parskip=.3cm
\oddsidemargin=.1in
\evensidemargin=.1in
\headheight=-.3in
\newcommand{\scscst}{\scriptscriptstyle}
\newcommand{\scst}{\scriptstyle}
\newcommand{\Rfunction}[1]{{\texttt{#1}}}
\newcommand{\Robject}[1]{{\texttt{#1}}}
\newcommand{\Rpackage}[1]{{\textit{#1}}}
\newcommand{\Rmethod}[1]{{\texttt{#1}}}
\newcommand{\Rfunarg}[1]{{\texttt{#1}}}
\newcommand{\Rclass}[1]{{\textit{#1}}}
\textwidth=6.2in
\bibliographystyle{plainnat}
\begin{document}
%\setkeys{Gin}{width=0.55\textwidth}
\title{Intro to ALL data for Bioc monograph}
\author{VJ Carey}
\maketitle
\section{Introduction}
This document is for authors of the Bioc monograph,
it just goes over various aspects of the ALL data.
Example analyses can be added here for illustration.
\section{Attachment and data list}
<<>>=
library(ALL)
data(ALL)
show(ALL)
@
\section{Tables and graphs for phenodata}
<<>>=
print(summary(pData(ALL)))
<<fig=TRUE>>=
hist(cvv <- apply(exprs(ALL),1,function(x)sd(x)/mean(x)))
<<>>=
ok <- cvv > .08 & cvv < .18
fALL <- ALL[ok,]
show(fALL)
allx2 <- data.frame(t(exprs(fALL)), class=ALL$BT)
@
<<fig=TRUE>>=
library(rpart)
rp1 <- rpart(class~.,data=allx2)
plot(rp1)
text(rp1)
@
\end{document}
|