Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
stat_methods_bioinf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bernd Klaus
stat_methods_bioinf
Commits
0fad9a56
Commit
0fad9a56
authored
Aug 17, 2017
by
Bernd Klaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finalized samples plot
parent
72aecb63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
graphics_bioinf.Rmd
graphics_bioinf.Rmd
+26
-3
No files found.
graphics_bioinf.Rmd
View file @
0fad9a56
...
...
@@ -531,16 +531,39 @@ count_boxplot <- ggplot(counts_crc_tidy,
fill
=
sample_id
)
)
+
geom_boxplot
()
+
ylim
(
c
(
0
,
10
))
+
scale_fill_brewer
(
palette
=
"Paired"
)
+
theme
(
axis
.
text
.
x
=
element_text
(
angle
=
90
,
hjust
=
1
))
count_boxplot
```
We
can
see
that
the
count
distributions
are
not
very
different
between
the
samples
.
Here
,
limited
the
y
--
axis
in
order
to
ignore
the
outliers
and
tilted
the
x
--
Axis
labels
,
so
that
we
can
actually
read
them
.
the
x
--
Axis
labels
,
so
that
we
can
actually
read
them
.
`
r
CRANpkg
(
"ggplot2"
)
`
allows
you
to
directly
use
palettes
from
the
[
Colorbrewer
project
](
http
://
colorbrewer2
.
org
).
Here
,
we
use
a
qualitative
paletter
called
"Paired"
instead
of
the
default
one
.
##
Exercise
:
Adapt
the
boxplot
Experiment
with
the
color
variable
and
try
to
create
faceted
plots
using
`
r
facet_wrap
()`
or
`
r
facet_grid
()`
:
Do
you
see
a
pattern
if
you
color
/
wrap
the
boxplots
by
tissue
and
or
patient
?
```{
r
exp_boxplot
}
count_boxplot_tissue
<-
ggplot
(
counts_crc_tidy
,
aes
(
x
=
sample_id_by_median
,
y
=
log2
(
count
),
fill
=
tissue
))
+
geom_boxplot
()
+
ylim
(
c
(
0
,
10
))
+
theme
(
axis
.
text
.
x
=
element_text
(
angle
=
90
,
hjust
=
1
))
count_boxplot_tissue
##
Exercise
:
count_boxplot_tissue
+
facet_grid
(
patient
~
.)
```
<
!-- the median gene expression per sample relative to a reference -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment