-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRIntro.Rnw
210 lines (164 loc) · 5.15 KB
/
RIntro.Rnw
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
\documentclass{beamer}
% Setup appearance:
% \usetheme{Darmstadt}
\usefonttheme[onlylarge]{structurebold}
\setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}
\setbeamertemplate{navigation symbols}{}
% Standard packages
% \usepackage[english]{babel}
% \usepackage[latin1]{inputenc}
% \usepackage{times}
% \usepackage[T1]{fontenc}
\usepackage{wrapfig}
\usepackage{ulem}
\usepackage{colortbl}
% \usecolortheme{seagull}
\usecolortheme{default}
%% new commande
\let\code=\texttt
\let\proglang=\textsf
\newcommand{\R}{\texttt{R} }
\newcommand{\Rfunction}[1]{{\texttt{#1}}}
\newcommand{\Robject}[1]{{\texttt{#1}}}
\newcommand{\Rpackage}[1]{{\mbox{\normalfont\textsf{#1}}}}
\newcommand{\email}[1]{\href{mailto:#1}{\normalfont\texttt{#1}}}
%% colors
\definecolor{Red}{rgb}{0.7,0,0}
\definecolor{Blue}{rgb}{0,0,0.8}
\hypersetup{%
hyperindex = {true},
colorlinks = {true},
linktocpage = {true},
plainpages = {false},
linkcolor = {Blue},
citecolor = {Blue},
urlcolor = {Red},
pdfstartview = {Fit},
pdfpagemode = {UseOutlines},
pdfview = {XYZ null null null}
}
%% Exercise counter
\newcounter{exerciseCounter}
\newcommand{\exerciseCount}{%
\stepcounter{exerciseCounter}%
\theexerciseCounter}
\newcommand{\exercise}{\textbf{Exercise \exerciseCount:}~}
% Author, Title, etc.
\title[R Introduction]
{%
An Introduction to R
}
\author[L. Gatto]
{
Laurent Gatto \\
\scriptsize \url{[email protected]}
}
%% \institute[CCP]
%% {
%% % \inst{1}%
%% Cambridge System Biology Centre\\
%% University of Cambridge \\
%% }
\date[]
{
\textbf{Microarray Analysis using \R and Bioconductor}\\
diXa Training -- 28$^{th}$ Jan 2014
}
\pgfdeclareimage[height=.7cm]{uc-logo}{./Figures/uc-logo}
\pgfdeclareimage[height=.7cm]{ebi-logo}{./Figures/EMBLEBIlogo}
% \logo{\pgfuseimage{uc-logo}}
\AtBeginSection[] % Do nothing for \section*
{
\begin{frame}<beamer>
\frametitle{Plan}
\tableofcontents[currentsection]
\end{frame}
}
% The main document
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Title frame %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Table of contents %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Plan}
\footnotesize
\tableofcontents
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% section %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<<echo=FALSE, message=FALSE>>=
library(Biobase)
data(sample.ExpressionSet)
@
\input{Sec-AboutR.tex}
\input{Sec-IntroR.tex}
\input{Sec-DataTypes1.tex}
\input{Sec-DataTypes2.tex}
\input{Sec-UseCase.tex}
\input{Sec-Packages.tex}
\input{Sec-RBioc.tex}
\input{Sec-objects.tex}
\input{Sec-BiocCase.tex}
%% \input{Sec-Plotting.tex}
%% \input{Sec-Programming.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% section %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{References}
\begin{block}{General}
\begin{itemize}
\item W. N. Venables, D. M. Smith and the R Development Core Team,
An Introduction to R (get it with \Rfunction{help.start()})
\item R. Gentleman, R Programming for Bioinformatics, CRC Press, 2008
\item Plenty of free documentation on the \R web page and elsewhere.
\end{itemize}
\end{block}
\begin{block}{Bioconductor}
\begin{itemize}
\item Gentleman et al.,
\textit{Bioconductor: open software development for computational biology and bioinformatics},
Genome Biol. 2004; 5:(10)R80
\item \textit{Bioconductor Case Studies}, 2008, Springer.
\end{itemize}
\end{block}
\end{frame}
\begin{frame}{References}
\begin{block}{Plotting}
\begin{itemize}
\item We have covered base graphics, not \Rpackage{lattice} and \Rpackage{ggplot2}.
\item Lattice: Multivariate Data Visualization with R, Deepayan Sarkar (2008)
\item ggplot2: Elegant Graphics for Data Analysis, Hadley Wickham (2010)
\item \url{http://gallery.r-enthusiasts.com/allgraph.php}
\item R Graphics manual: \url{http://rgm3.lab.nig.ac.jp/RGM/r_image_list}
\item \url{http://www.cookbook-r.com/Graphs/} (ggplot2)
\end{itemize}
\end{block}
\end{frame}
\begin{frame}[fragile]
<<sessioninfo, results='asis'>>=
toLatex(sessionInfo())
@
\end{frame}
\begin{frame}
\vspace{2cm}
\begin{itemize}
\item Parts of these slides are based on the
\textit{Beginners guide to solving biological problems in \texttt{R}} course\footnote{%%
\url{http://www.training.cam.ac.uk/gsls/course/gsls-rintro}}, University of Cambridge.
\item This work is licensed under a CC BY-SA 3.0 License
\item Course web page: \url{https://github.com/lgatto/TeachingMaterial}
\end{itemize}
\vspace{.7cm}
\begin{center}
\textbf{Thank you for your attention}
\vspace{1cm}
\includegraphics[width=2cm]{./Figures/cc-by-sa.png}
\end{center}
\end{frame}
\end{document}